bm ilm rule rm
Syntax
The bm ilm rule rm command removes an object lifecycle management rule from a Buckit Bucket.
The following command removes a single lifecycle management rule from the mydata bucket on the mybuckit Buckit deployment:
bm ilm rule rm --id "bgrt1ghju" mybuckit/mydata
The command has the following syntax:
bm [GLOBALFLAGS] ilm rule rm \
--id "string" | (--all --force) \
ALIAS \
Brackets
[]indicate optional parameters.Parameters sharing a line are mutually dependent.
Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
- ALIAS
- Required
The alias and full path to the bucket on the Buckit deployment to which to remove the object lifecycle management rule. For example:
bm ilm rule rm mybuckit/mydata
- --all
- Optional
Removes all rules in the bucket. Requires including
--force.Mutually exclusive with
--id.
- --force
- Optional
Required if specifying
--all.
- --id
- Optional
The unique ID of the rule. Use
bm ilm rule lsto list bucket rules and retrieve theidfor the rule you want to remove.Mutually exclusive with
bm ilm rule rm --all
Global Flags
This command supports any of the global flags.
Examples
Remove a Bucket Lifecycle Management Rule
Use bm ilm rule rm to remove a bucket lifecycle management rule:
bm ilm rule rm --id "RULE" ALIAS/PATH
Replace
RULEwith the unique identifier of the lifecycle management rule. Usebm ilm rule lsto find the ID to use.Replace
PATHwith the path to the bucket on the S3-compatible host.
Required Permissions
For permissions required to remove a rule, refer to the required permissions on the parent command.
Behavior
S3 Compatibility
The bm commandline tool is built for compatibility with the AWS S3 API and is tested with Buckit and AWS S3 for expected functionality and behavior.
Buckit provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While bm commands may work as documented, any such usage is at your own risk.