MCPcopy
hub / github.com/rclone/rclone / Remove

Method Remove

backend/mega/mega.go:1242–1248  ·  view source on GitHub ↗

Remove an object

(ctx context.Context)

Source from the content-addressed store, hash-verified

1240
1241// Remove an object
1242func (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
1251func (o *Object) ID() string {

Callers

nothing calls this directly

Calls 2

deleteNodeMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected