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));curl --request DELETE \
--url https://studyfetchapi.com/api/v1/materials/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://studyfetchapi.com/api/v1/materials/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)Materials
Delete material
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));curl --request DELETE \
--url https://studyfetchapi.com/api/v1/materials/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://studyfetchapi.com/api/v1/materials/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)Was this page helpful?