mirror of
https://github.com/restic/restic.git
synced 2025-08-13 13:01:59 +00:00
backend: Add Delete() to restic.Backend interface
This commit is contained in:
@@ -275,7 +275,7 @@ func (b *Local) List(ctx context.Context, t restic.FileType) <-chan string {
|
||||
}
|
||||
|
||||
// Delete removes the repository and all files.
|
||||
func (b *Local) Delete() error {
|
||||
func (b *Local) Delete(ctx context.Context) error {
|
||||
debug.Log("Delete()")
|
||||
return fs.RemoveAll(b.Path)
|
||||
}
|
||||
|
Reference in New Issue
Block a user