pw buckets rm
pw buckets rm
Remove files from buckets
Synopsis
The pw buckets rm command must be followed by a bucket URI and file name.
Both PW URIs and CSP URIs are accepted. For more information about URIs, please see this section.
Removing a folder needs -r, which deletes every object under the given prefix and asks first. -f skips the prompt, and reports success when the object is already gone.
pw buckets rm [bucket URI]/[file] [flags]Examples
pw buckets rm pw://demo/demos3bucket/sample.txt
# Delete every object under a folder, after confirming
pw buckets rm -r pw://demo/demos3bucket/reports/
# Delete a folder without being asked
pw buckets rm -rf pw://demo/demos3bucket/reports/
# Succeed even if the object is already gone
pw buckets rm -f pw://demo/demos3bucket/sample.txtOptions
-f, --force Do not prompt, and do not fail when the object does not exist
-h, --help help for rm
-r, --recursive Delete every object under the given prefixOptions inherited from parent commands
--context string The context to use. Overrides PW_CONTEXT environment variable and current context from config.
--platform-host string The Parallel Works ACTIVATE platform host to use. Overrides PW_PLATFORM_HOST environment variable and the current context's server.
-v, --verbose Enable verbose loggingSEE ALSO
- pw buckets - Manage cloud buckets