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

Authorizations

x-api-key
string
header
required

API Key for authentication

Path Parameters

id
string
required

Component ID

Response

200

Component deleted successfully