diff --git a/storage/filesystem.go b/storage/filesystem.go index fc614e4..7aac265 100644 --- a/storage/filesystem.go +++ b/storage/filesystem.go @@ -627,3 +627,17 @@ func (b *filesystemBackend) PutCalendarObject(ctx context.Context, objPath strin return objPath, nil } + +func (b *filesystemBackend) DeleteCalendarObject(ctx context.Context, path string) error { + debug.Printf("filesystem.DeleteCalendarObject(%s)", path) + + localPath, err := b.localCalDAVPath(ctx, path) + if err != nil { + return err + } + err = os.Remove(localPath) + if err != nil { + return err + } + return nil +}