How do I delete a Collection level variable?

My question:
I created a Collection variable by mistake, meant to create at Environment level. Now I can’t delete the Collection variable, and when I try to use the Environment variable it keeps saying it’s “Overridden” by the Collection variable.

Details (like screenshots):

image

How I found the problem:
I keep getting errors where I’m sending the Collection level value instead of the Environment level value.

I’ve already tried:
Deleting the value at Collection level. Unticking the tickbox at Collection level.

Thank you!

Hey @davidgerrard, Welcome to the community :partying_face:

To simply delete a Collection variable, just click on the x mark on the right.


After deleting, don’t forget to click save.

Hope this helps,
Good luck!

2 Likes

Yes obviously, but where can we find this secret screen?

Hey @sony-andries :wave:

Welcome to the Postman Community! :postman:

The Collection Level Variable manage section, can be seen when opening the Collection entity in a tab.

This can be opened a number of ways, the easiest being clicking the Collection from the sidebar or using the View more actions menu and selecting Edit.

More about navigating Postman can be found on our Learning Center:

Deleting Collection Level variables can also be handled in the Pre-request or Tests scripts:

pm.collectionVariables.unset('variable_name');

More information about the pm.collectionVariables functions can be found on our Learning Center:


To help with any saving related issues after making changes, you could enable to Autosave feature from the Settings. This will autosave changes made to the Requests and Collections.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.