{"info":{"_postman_id":"11db17f0-8735-4d07-9c8d-6346dd20eb8a","name":"Delete Archived collection","description":"<html><head></head><body><p>Once your collections are archived in Team workspace. You can try to delete those APIs using the Postman API, using the below two requests.</p>\n<p>Generate API Key, navigating to the below link. More details can be found <a href=\"https://learning.postman.com/docs/developer/intro-api\">here</a>.</p>\n<ul>\n<li><a href=\"https://go.postman.co/settings/me/api-keys\">https://go.postman.co/settings/me/api-keys</a></li>\n</ul>\n<p>Also, if you would like to recover the deleted archived collection then:</p>\n<ul>\n<li>Once the collection is deleted, navigate to the <a href=\"https://go.postman.co/me/trash\">trash</a>.</li>\n<li>Now click on \"Restore\" and select your personal workspace to have these collections back.</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"6034746","collectionId":"11db17f0-8735-4d07-9c8d-6346dd20eb8a","publishedId":"SzYgPu4t","public":true,"customColor":{"top-bar":"FFEDF9","right-sidebar":"696969","highlight":"EF5B25"},"publishDate":"2020-06-01T12:32:23.000Z"},"item":[{"name":"Fetch all collection ID","id":"ad1ddb7b-4a58-4da6-ac69-55458d5c7bc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-api-key","value":"{{api-key}}","type":"text"}],"url":"https://api.getpostman.com/collections","description":"<p>This lists down all of the collections across workspaces, including the ones that are archived.</p>\n<p>Select \"find\" options from the body response and filter out the archived collection.</p>\n","urlObject":{"protocol":"https","path":["collections"],"host":["api","getpostman","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ad1ddb7b-4a58-4da6-ac69-55458d5c7bc8"},{"name":"Delete the collection","event":[{"listen":"test","script":{"id":"6f1fddd7-26a8-4f48-808b-4f245c3bc45b","exec":["//This request gets you all of the collections"],"type":"text/javascript"}}],"id":"5580eb08-6a7b-4742-880e-961861499f5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-api-key","value":"{{api-key}}","type":"text"}],"url":"https://api.getpostman.com/collections/{{collection_uid}}","description":"<p>Enter the collection-uid received from the above request and delete the same using this request.</p>\n","urlObject":{"protocol":"https","path":["collections","{{collection_uid}}"],"host":["api","getpostman","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5580eb08-6a7b-4742-880e-961861499f5d"}]}