Skip to content

s3 delete-object

Delete Object

Description

delete object from bucket

Synopsis

s3 delete-object
    [--site <site>]
    [--region <region>]
    <key>
    --bucket <bucket>

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

region - (string)

     AWS region for the service
     Example: --region "region-1"
     Default: _None_      Attributes: optional

key - (string)

     The key of the object to be removed
     Example: "test2"
     Default: _None_      Attributes: required

bucket - (string)

     The name of the bucket where object is located
     Example: --bucket "mairatestbucket2"
     Default: _None_      Attributes: required

Examples

Input:

x = ! s3 delete-object --bucket "mairatestbucket10" "firstContent"
Output:

Access Control

To use this command, you need access to the following:

Field Value
Action "update"
Service Type "s3"
Service Instance
Namespace
Object Type "bucket"
Object ID bucket

Please see Access Control for details.