website logo
Create accountLogin
Home
DCS
Node
Resources
Help center
Navigate through spaces
Home
DCS
Node
Resources
Help center
⌘K
Storj DCS
Get Started
AWS CLI and Hosted Gateway MT
AWS SDK and Hosted Gateway MT
Uplink CLI
Satellite Admin Console
Object Browser
Downloads
Download Uplink CLI
Download Self-hosted S3 Compatible Gateway
Download Storj Client Libraries
SDKs & Reference
Tutorial
How-to Guides
Concepts
Support
Support Overview
FAQ
Community Forum
Status Page
Help Desk
Billing, Payment & Accounts
Resources
Moved Documents
Docs powered by archbee 
18min

rm

Delete an object.

Usage

Windows
Linux
MacOS
|

Flags

Flag
Description
--access string
the serialized access, or name of the access to use
--encrypted
if true, treat paths as base64-encoded encrypted paths
--help, -h
help for rm
--parallelism, -p int
Controls how many removes to perform in parallel (default 1)
--pending
Remove pending object uploads instead
--recursive, -r
Remove recursively
--help, -h
help for rm

Examples

Delete an object

Windows
Linux
MacOS
|

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:

Windows
Linux
MacOS
|
Document image

You can then use this path to delete the encrypted object:

Windows
Linux
MacOS
|
Document image
Updated 23 Sep 2022
Did this page help you?
Yes
No
UP NEXT
setup
Docs powered by archbee 
TABLE OF CONTENTS
Usage
Flags
Examples
Delete an object
Delete an encrypted object