Authorizations
API Key for authentication
Path Parameters
Material ID
Response
Material deleted successfully
const url = 'https://studyfetchapi.com/api/v1/materials/{id}';
const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}, body: undefined};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
const url = 'https://studyfetchapi.com/api/v1/materials/{id}';
const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}, body: undefined};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}
API Key for authentication
Material ID
Material deleted successfully
Was this page helpful?