Delete an object
Delete an object on the Console, with rc, or with the S3 API.
This guide covers object deletion.
Requirements
- Install and configure
rcbefore using the command-line workflow. - Confirm the alias, bucket, and object key before deleting an object.
Use the RustFS Console
- Sign in to the RustFS Console.
- Select the bucket that contains the object you want to delete.
- On the bucket page, select the file to be deleted.
- Select Delete Selected Items in the upper-right corner, and then select Confirm.

Using rc
Delete a file:
rc object remove rustfs/my-bucket/hello.txt
rc object list rustfs/my-bucketRemoved: rustfs/my-bucket/hello.txt
✓ Removed 1 object(s).Verify the deletion in the RustFS Console.
Using the API
Delete a file via API:
DELETE /{bucketName}/{objectName} HTTP/1.1S3 requests must be signed with AWS Signature V4, so use an S3 client rather than hand-crafting headers. With the AWS CLI configured for your access keys:
aws s3api delete-object \
--bucket bucket-creation-by-api \
--key hello.txt \
--endpoint-url http://localhost:9000Verify the deletion in the RustFS Console.