Skip to content

Delete a folder

Delete an existing folder and remove folder references from all templates within it.
Templates themselves are not deleted, only their association with the folder.

Sample Request

Here’s a sample request to delete a folder:

ENDPOINT
DELETE /v1/folders/{id}
REQUEST
fetch(`https://api.templated.io/v1/folder/${folderId}`, {
method: 'DELETE',
headers: {
'Authorization': Bearer ${API_KEY}
}
})

Path Parameters

id string REQUIRED
The unique identifier of the folder you want to delete.

Response

A successful deletion returns an empty response with a 204 status code. When deleting a folder:

  • All templates previously in the folder will have their folder reference removed
  • The folder will be permanently deleted
  • Templates themselves are not deleted, only their association with the folder