JavaScript
const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}}; fetch('https://studyfetchapi.com/api/v1/materials/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
API Key for authentication
Material ID
Material deleted successfully
Was this page helpful?