Removing objects from the Storage

To remove an object from the Storage, execute the following command:

kics-control -B --mass-remove --query "ObjectId == '<object ID>'"

Example:

To remove an object with ID=15:

kics-control -B --mass-remove --query "ObjectId == '15'"

To remove several objects from the Storage, execute the following command:

kics-control -B --mass-remove --query "<field> <logical expression> '<value>' [and <field> <logical expression> '<value>']"

Example:

To remove objects that contain "test" in their names or paths:

kics-control -B --mass-remove --query "FileName like '%test%'"

To remove all objects from the Storage, execute one of the following commands:

kics-control -BĀ --mass-remove

, or

kics-control -B --mass-removeĀ --query

Page top