Delete Postman Elements by Tag
Number of APIs: 5
This collection deletes all elements (collections, APIs, and workspaces) that contain a specific tag. Tagging is available on [Qodex Enterprise plans]
Use caution with this collection. Always review the Variables tab and the tag you want to use to remove elements before you run the collection.
How to use
- Provide the tag you want to use in the
tag
collection variable before running the collection. - Run the collection. All collections, APIs, and workspaces that contain the given tag will be deleted.
- Check the log to view the deleted entities.
-
Get all elements by tag GET https://api.getpostman.com/tags/:tag/entities?limit=50
-
Delete collections with tag DELETE https://api.getpostman.com/collections/{{currentCollectionId}}
-
Delete APIs with tag DELETE https://api.getpostman.com/apis/{{currentApiId}}
-
Delete workspaces with tag DELETE https://api.getpostman.com/workspaces/{{currentWorkspaceId}}