jQuery ajax() DELETE method?
<p>Can I delete an item from a json file by passing the id of the item I want to delete? I'm getting:</p>

<blockquote>
  <p>jquery-2.2.4.min.js: DELETE <a href="http://example.com/comments.json1" rel="nofollow">http://example.com/comments.json1</a> 405
  (Method Not Allowed)</p>
</blockquote>

<p>Here's what I have:</p>

<pre><code>jQuery.ajax({
  method: 'DELETE',
  url: comments.json1
});

// comments.json
[
  {
    "id": 1,
    "body": "abc",
  },
  {
    "id": 2,
    "body": "xyz",
  }
]
</code></pre>