mirror of
https://github.com/rclone/rclone.git
synced 2024-12-02 13:25:51 +01:00
14 lines
274 B
Go
14 lines
274 B
Go
|
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
|
||
|
}
|