Managing Files and Folders with WebDAV > Deleting a File or Directory
Deleting a File or Directory
Internal WebDAV
Delete an existing file or directory from the portal.
Object URI
File delete: {INT_WEBDAV_URL}/File_path
Directory delete: {INT_WEBDAV_URL}/Dir_path
HTTP Method
DELETE
Request Header
Empty
Request Body
Empty
Expected Response status
204 No Content
If a response such as 401 Access Denied is returned, check the permissions.
External WebDAV
Java Example
To delete an existing file from the portal, use the following:
sardine.delete({EXT_WEBDAV_URL} + "/" + path);}