Have been trying out monetization. Wanted to cleanup my demo environment now and can't get rid of the packages.
How to delete the monetization packages when not needed?
Thanks in advance!
--SF898936--
Solved! Go to Solution.
Hi @Aravind Kumar Tadakamalla AFAIK today you cannot delete a Monetization Package once it has been published. This is a roadmap item to be addressed. Please refer to the following discussion : https://community.apigee.com/questions/2010/how-can-i-edit-or-delete-a-rate-plan-in-the-moneti.html
@harsh do you know?
Hi @Aravind Kumar Tadakamalla AFAIK today you cannot delete a Monetization Package once it has been published. This is a roadmap item to be addressed. Please refer to the following discussion : https://community.apigee.com/questions/2010/how-can-i-edit-or-delete-a-rate-plan-in-the-moneti.html
@Aravind Kumar Tadakamalla You cannot delete monetization packages once they have rate-plans which are already published. You can delete the rate-plans which are in draft (unpublished) stage and then delete the corresponding monetization package. I don't think UI allows you to delete the monetization packages but you can do that over apis:
curl -v https://api.enterprise.apigee.com/v1/mint/organiz. -X DELETE
If there are no rateplans associated with this package it would get deleted. If there are rate-plans, then you would get this validation error:
{ "code" : "mint.packageHasRatePlanCanNotDelete", "message" : "Package has at least 1 rate plan can not delete the package", "contexts" : [ ] }
I get the below error when I try to delete a package which has 0 rate plans. Looks like you can not delete a package even if there are no plans!
{ "code": "mint.packageHasRatePlanCanNotDelete", "message": "Current rate plans: 0, draft/expired rate plans: 1; can not delete the package", "contexts": [] }
Have you deleted monetization data as specified in product docs
https://docs.apigee.com/monetization/content/delete-monetization-data-organization
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |