Skip to main content
DELETE
/
v1
/
shelves
/
{id}
Delete a shelf
curl --request DELETE \
  --url https://api.shelv.dev/v1/shelves/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.shelv.dev/v1/shelves/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.shelv.dev/v1/shelves/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.shelv.dev/v1/shelves/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true
}
{
  "code": "<string>",
  "message": "<string>",
  "details": "<unknown>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Pattern: ^shf_[0-9a-f]{24}$

Response

Shelf deleted

success
boolean
required