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

  1. Provide the tag you want to use in the tag collection variable before running the collection.
  2. Run the collection. All collections, APIs, and workspaces that contain the given tag will be deleted.
  3. Check the log to view the deleted entities.
  1. Get all elements by tag GET https://api.getpostman.com/tags/:tag/entities?limit=50

  2. Delete collections with tag DELETE https://api.getpostman.com/collections/{{currentCollectionId}}

  3. Delete APIs with tag DELETE https://api.getpostman.com/apis/{{currentApiId}}

  4. Delete workspaces with tag DELETE https://api.getpostman.com/workspaces/{{currentWorkspaceId}}

  5. Print results GET https://postman-echo.com/get