---
metadata:
  - name: generator
    content: Diplodoc Platform v5.44.0
alternate:
  - https://yandex.com/dev/disk/doc/en/reference/delete.md
  - https://yandex.com/dev/disk/doc/ru/reference/delete.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/disk/doc/en/llms.txt

# Deleting (DELETE)

Use the [DELETE](http://www.webdav.org/specs/rfc4918.html#METHOD_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.
>
> ```yaml
> DELETE /pictures/ HTTP/1.1
> Host: webdav.yandex.ru
> Accept: */*
> Authorization: OAuth 0c4181a7c2cf4521964a72ff57a34a07
> ```
>
> If the directory was deleted successfully, the following response is returned:
>
> ```yaml
> HTTP/1.1 200 OK
> Content-Length: 0
> ```
