Turn a database back into a page
View as MarkdownDEL
/v1/databases/{id}Removes the database (schema and views go to the trash with it); the document and its rows stay as ordinary pages. To delete the document itself use doc.delete.
curl -X DELETE "https://api.lydie.co/v1/databases/01JCQ3V5MZ8G4ZK2X7T9R6N1PB" \
-H "Authorization: Bearer $LYDIE_TOKEN"Path parameters
Response
- idULID
- configDatabaseConfig
Show 3 fieldsHide fields
Default
null- templateIdsULID[]
Default
[] - extraobject
Default
{}
- createdAttimestamp
- updatedAttimestamp
{
"id": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
"config": {
"filter": null,
"templateIds": [],
"extra": {}
},
"createdAt": "2026-11-12T09:30:00.000Z",
"updatedAt": "2026-11-12T09:30:00.000Z",
"deletedAt": null,
"createdBy": null,
"updatedBy": null
}Errors use one envelope for every endpoint. See Errors and versions.