Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js fetch delete

fetch('https://example.com/delete', {
  method: 'DELETE'
})
  .then(res => res.json())
  .then(data => {
    // Do some stuff...
  })
  .catch(err => console.log(err));
 
PREVIOUS NEXT
Tagged: #js #fetch #delete
ADD COMMENT
Topic
Name
7+4 =