Deleting (DELETE)
Use the DELETE method to delete a file or directory from Yandex Disk.
According to the protocol, directories are always deleted together with all nested files and directories.
Deleting the /pictures/ directory from the user's root Disk directory.
DELETE /pictures/ HTTP/1.1 Host: webdav.yandex.ru Accept: */* Authorization: OAuth 0c4181a7c2cf4521964a72ff57a34a07
If the directory was deleted successfully, the following response is returned:
HTTP/1.1 200 OK Content-Length: 0