Remove an object
(ctx context.Context)
| 1240 | |
| 1241 | // Remove an object |
| 1242 | func (o *Object) Remove(ctx context.Context) error { |
| 1243 | err := o.fs.deleteNode(ctx, o.info) |
| 1244 | if err != nil { |
| 1245 | return fmt.Errorf("Remove object failed: %w", err) |
| 1246 | } |
| 1247 | return nil |
| 1248 | } |
| 1249 | |
| 1250 | // ID returns the ID of the Object if known, or "" if not |
| 1251 | func (o *Object) ID() string { |
nothing calls this directly
no test coverage detected