(ctx context.Context, zoneId string, name string)
| 152 | } |
| 153 | |
| 154 | func (s *FileStore) DeleteFile(ctx context.Context, zoneId string, name string) error { |
| 155 | return withLock(s, zoneId, name, func(entry *CacheEntry) error { |
| 156 | err := dbDeleteFile(ctx, zoneId, name) |
| 157 | if err != nil { |
| 158 | return fmt.Errorf("error deleting file: %v", err) |
| 159 | } |
| 160 | entry.clear() |
| 161 | return nil |
| 162 | }) |
| 163 | } |
| 164 | |
| 165 | func (s *FileStore) DeleteZone(ctx context.Context, zoneId string) error { |
| 166 | fileNames, err := dbGetZoneFileNames(ctx, zoneId) |