Schemas
Delete a schema
Delete or archive an extraction schema.
DELETE
/
api
/
v2
/
structs
/
{slug}
/
Soft-delete (archive) a Struct
curl --request DELETE \
--url https://api.example.com/api/v2/structs/{slug}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/structs/{slug}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/structs/{slug}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}Sets status to ARCHIVED. The row stays so historical batch versions still resolve. An already-archived slug is 404. Batches keep the published snapshot they were extracted with.
⌘I
Soft-delete (archive) a Struct
curl --request DELETE \
--url https://api.example.com/api/v2/structs/{slug}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v2/structs/{slug}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v2/structs/{slug}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}
