mirror of
https://github.com/restic/restic.git
synced 2025-08-12 14:47:41 +00:00
backend: Add Delete() to restic.Backend interface
This commit is contained in:
@@ -499,3 +499,8 @@ func (r *SFTP) Close() error {
|
||||
<-r.result
|
||||
return nil
|
||||
}
|
||||
|
||||
// Delete removes all data in the backend.
|
||||
func (r *SFTP) Delete(context.Context) error {
|
||||
return r.c.RemoveDirectory(r.p)
|
||||
}
|
||||
|
Reference in New Issue
Block a user