Description
Environment details:
IBM Bluemix (US-South)
Steps to reproduce the issue:
wsk package create service_package
wsk action create service_package/hello handler.js
wsk package delete service_package
Provide the actual results and outputs:
error: Package delete failed: Package not empty (contains 1 entity) (code 4577263)
What do you want to change?
I want the API to support removing packages which aren't empty.
I understand this behaviour could cause accidental delete issues and would like a flag force
to enable this.
Why do you want this change?
Packages are a convenient mechanism to group functions, triggers and rules into "services".
Being able to remove a package and have the contents removed is a much faster way to handle removing services without having to manually issue the individual delete calls for each resource.
In the Serverless Framework integration, I'm going to starting using this packages to deploy "services". serverless/serverless-openwhisk#29.
Before updating a service, I need to clear out the current resources that might have been removed from the configuration file. When the user wants to remove a service, I'll need to delete all resources.
This will currently require a large amount of boilerplate code, retrieving all the package resources and firing off individual API calls.