title: Is there a good way to get the result of multiple AJAX delete requests?
body: <p>I have a selected <code>id</code> list:</p>
  
  <pre><code>[1, 3, 5, 7]
  </code></pre>
  
  <p>And there is a delete url for me to delete the selected items:</p>
  
  <pre><code>/api/users/&lt;pk&gt;/delete/
  </code></pre>
  
  <p>But the url can only pass one <code>id</code> each time.</p>
  
  <p>So, there should use a for-loop to delete the selected items.</p>
  
  <p>The delete method is below, the <code>delete_url(id)</code> is the url, the <code>(response) =&gt; {}</code> is success callback, the last is error callback:</p>
  
  <pre><code>this.$http.delete(delete_url(id), (response) =&gt; {
  
  }, (error) =&gt; {
  
  })
  </code></pre>
  
  <p>You know one time only can delete one item, but if I use a for-loop to execute the method, how can I know when all the delete request execute finish? And how can I know whether it delete all success?</p>