Delete the file or folder at a given path. If the path is a folder, all its contents will be
deleted too. A successful response indicates that the file or folder was deleted. The returned
metadata will be the corresponding FileMetadata or FolderMetadata for the item at time of
deletion, and not a DeletedMetadata object.
**Required scope:** `files.content.write`
**Endpoint format:** [RPC](https://docs.dropboxapi.com/dropbox-api/docs/technical-reference/request-response-formats#rpc-endpoints)
**Authentication:** [User](https://docs.dropboxapi.com/dropbox-api/docs/auth-types#user-authentication), [Dropbox-API-Select-Admin (Team Admin)](https://docs.dropboxapi.com/dropbox-api/docs/auth-types#admin-authentication-via-dropbox-api-select-admin)
Request
This endpoint expects an object.
pathstringRequiredformat: "(/(.|[\r\n])*)|(ns:[0-9]+(/(.|[\r\n])*)?)|(id:.*)"
Path in the user's Dropbox to delete.
parent_revstring or nullOptionalformat: "[0-9a-f]+">=9 characters
Perform delete if given "rev" matches the existing file's latest "rev". This field
does not support deleting a folder.