Skip to main content
DELETE
/
api
/
v1
/
materials
/
{id}
Delete material
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));

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

id
string
required

Material ID

Response

Material deleted successfully