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