Delete a folder and the documents it contains by making API calls to the following endpoints in their listed order. See each endpoint's listed reference section for more information.
- To create a new folder, call POST /api/documents/path[docPath] (see Create a Document in a Folder with the Specified Path).
- To create new documents in the folder, call POST /api/documents/path[docPath] (see Create a Document in a Folder with the Specified Path).
- To return the folder, call GET /api/documents/path[docPath] (see Return the Document with the Specified Path).
- Call one of the following endpoints:
- To delete the folder and its documents, call DELETE /api/documents/path[docPath] (see Delete the Document with the Specified Path).
- To delete the folder and its documents by the folder's ID, call DELETE /api/documents/[docId] (see Delete the Document with the Specified ID).