Here’s how I’ve been clearing all environment vars apart from my “important” ones.
I’ve been using this method for years haha
And since we’re on the subject, here’s the Feature Request I raised in relation to this 2 years ago
opened 08:54AM - 02 Jun 17 UTC
feature
Environments
variables
product/runtime
**Feature Request:**
I'd like to see the functionality to allow users to "lock"… environment variables. That way we can call the postman.clearEnvironmentVariables() function to clears all environment variables with the exception of the "locked" ones.
Here's how I'm currently doing that same thing in Postman now:
![image](https://cloud.githubusercontent.com/assets/9334128/26718591/6c9a17b0-4779-11e7-98ba-1cdd21d74e67.png)
1 Like
This blog post was created off the back of this community tip
I’ve found in my short time working for Postman, that everyone I talk to uses the application in slightly different ways.
We all have our little tips and tricks that we use locally that have helped us with the tasks that we have been doing. These might be small things like creating a small helper function or much more bigger things.
I was inspired by @tmccann ’s post this week about a particular way he’s created a process to solve a problem he was having, in his context.
This was new knowledge…
@VincentD123 also created this post with a different method of doing this clear down operation.
Lots of different ways to do the same thing which personally, I kinda like, it then leaves it up to our users to add their own personal stamp on things.
1 Like