flâneur — a map of the web's best reading

Axios DELETE Requests - Mastering JS

masteringjs.io · 172 words · saved by 1 readers

Here's how you can send an HTTP DELETE request with Axios, including how to send a request body with a DELETE request.

Axios DELETE Requests - Mastering JS Mastering JS Tutorials Newsletter eBooks Jobs ☰ Tutorials Newsletter eBooks Jobs Tutorials / Axios / Axios DELETE Requests Sep 11, 2020 Axios has a axios.delete() function that makes it easy to send an HTTP DELETE request to a given URL. const res = await axios.delete( 'https://httpbin.org/delete' ); res.status; // 200 Unlike axios.post() and axios.put() , the 2nd param to axios.delete() is the Axios options , not the request body. To send a request body with a DELETE request, you should use the data option . const res = await axios.delete( 'https://

Explore this link on the map →

saved by

related reading