rm
Delete an object.
Usage
Please note, the command uplink rm --recursive for the versioned bucket will put a deletion marker instead of the object deletion.
Flags
| Flag | Description |
|---|---|
--access string | the serialized access, or name of the access to use |
--recursive, -r | Remove recursively |
--parallelism, -p int | Controls how many removes to perform in parallel (default 1) |
--encrypted | if true, treat paths as base64-encoded encrypted paths |
--pending | Remove pending object uploads instead |
--version-id | Version ID to remove (if the location is an object path) |
--bypass-governance-retention | Bypass Object Lock governance mode restrictions |
Global flags
| Flag | Description |
|---|---|
--config-dir string | main directory for uplink configuration |
--help, -h | help for the command |
--summary | prints a summary of what commands are available |
--advanced | if used in with -h, print advanced flags help |
Examples
Delete an object
Delete an encrypted object
If an object has been created with another encryption key, you won't be able to read it, but you can delete it. In order to delete an encrypted object, you have to know its encrypted path. To retrieve it, you can use the list command ls with the encrypted file. For instance, to list the encrypted path of the objects in a bucket sj://cakes you could use:
You can then use this path to delete the encrypted object:
Delete a pending object
To see a pending objects:
To delete a pending object:

