1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-09 03:53:17 +00:00

yandex: implement cleanup (empty trash) - addresses #575

This commit is contained in:
ishuah91
2017-09-07 20:10:39 +03:00
committed by Nick Craig-Wood
parent fe536f3fa8
commit 49816e67bd
4 changed files with 25 additions and 1 deletions

13
yandex/api/empty_trash.go Normal file
View File

@@ -0,0 +1,13 @@
package src
// EmptyTrash will permanently delete all trashed files/folders from Yandex Disk
func (c *Client) EmptyTrash() error {
fullURL := RootAddr
fullURL += "/v1/disk/trash/resources"
if err := c.PerformDelete(fullURL); err != nil {
return err
}
return nil
}