Delete All Collections in a Workspace

Number of APIs: 2

This collection will find all collections in the given workspace_id (specified via an environment variable) and delete all of the collections in that workspace.

Environment variables that must be specified:

  1. Qodexapikey: Specify your API Key for the Qodex API
  2. workspace_id: UID of the workspace from which collections need to be deleted

NOTE: This collection is meant to be run via the collection runner, since the Delete next collection request depends on the output of the Get collections... request. Also, Delete next collection is called multiple times until all the collections in the specified workspace have been deleted.

  1. Get All Collections for Workspace GET https://api.getpostman.com/workspaces/{{destination_workspace_id}}

  2. Delete Next Collection in List DELETE https://api.getpostman.com/collections/{{next_collection_uid}}