When deleting an API model from a dev portal environment, some artifacts are left behind in all dev portal environments. These artifacts are the smartdocs models taxonomy term (admin/structure/taxonomy/smartdocs_models), the view that filters on that taxonomy term (admin/structure/views -> taxonomy/term/my_api_model) and the content that was associated with each resource for that API (admin/content -> Filter:Type=SmartDocs Method).
So if I have a dev portal reserved for employees (internal site) and a dev portal open to the public (external site) and I delete a model from the internal site, there are still these artifacts in the internal and external site.
How can I automate a process to delete these artifacts from all environments? Since the model is gone, I see no reason to retain them and it is difficult to delete all of these artifacts manually.
Thank you for your time,
Mitchel
Solved! Go to Solution.
Great Question & Welcome to Apigee Community 🙂
Coming to your question,
How to manually delete same ?
Agree, It's a not a great way to manage like above. See similar disucssion here which will help you manage API models by naming same according to environment so that you won't end up accidentally publishing / deleting other environment API models.
@Marsh Gardiner , @Daniel Johnson , @harsh , @Chris Novak Any inputs are welcome. Let us know what do you think about same ?
Great Question & Welcome to Apigee Community 🙂
Coming to your question,
How to manually delete same ?
Agree, It's a not a great way to manage like above. See similar disucssion here which will help you manage API models by naming same according to environment so that you won't end up accidentally publishing / deleting other environment API models.
@Marsh Gardiner , @Daniel Johnson , @harsh , @Chris Novak Any inputs are welcome. Let us know what do you think about same ?
I would like to suggest Apigee create a cron job to scan the API Model Data Store and compare with the developer portal. If a model, taxonomy term or resource view is found out of sync, create a report and notify the admin. When the admin views the report all these artifacts are listed and grouped accordingly. Much like the view you created with options to edit, delete single or delete group. Can this be done?
Great Suggestion @Mitchel Skees , Ideally, It has to be completely automated. If API Model is deleted, All the artifacts should be deleted too. Let me loop in Dev Portal team. @harsh , @Daniel Johnson , @Chris Novak , @Marsh Gardiner FYI