title: In REST API, can DELETE methods have parameters?
body: <p>In REST API, how do we create DELETE methods when parameters are required to determine what resources need to be deleted?</p>
  
  <p>For examples, photos can belong to both users and groups, and if we have an endpoint for photos, we will need additional information to figure out if we want to delete user photos or group photos, for example,</p>
  
  <pre><code> /photos?userId={userId}
   /photos?groupId={groupId}
  </code></pre>
  
  <p>is this a good Restful practice?</p>
  
  <p>Alternatively, should DELETE only happen through users/:id/photo or groups/:id/photo endpoints strictly?</p>