Your application is using Object Storage bucket named app-data In the namespace vision, to store both persistent and temporary date. Every week all the temporary data should be deleted to limit the storage consumption.
Currently you need to navigate to the Object Storage page using the web console, select the appropriate bucket to view all the objects and delete the temporary ones.
To simplify the task you have configured the application to save all the temporary data with /temp prefix. You have also decided to use the Command Line Interface (CLI) to perform this operation.
What is the command you should use to speed up the data cleanup?
A)
B)
C)
D)
bulk-delete : Deletes all objects in a bucket which match the provided criteria.
delete : Deletes an object.
# Delete all the objects.
oci os object bulk-delete -ns mynamespace -bn mybucket
# Delete objects that match the specified prefix.
oci os object bulk-delete -ns mynamespace -bn mybucket --prefix myprefix
By default, the bulk-delete command will prompt you prior to deleting objects. To suppress this prompt, pass the --force option.
Currently there are no comments in this discussion, be the first to comment!