- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to clear the global variables in Postman?
We can clear the Global variables in Postman at runtime with the help of scripts. This is done with the help of the pm.* function. The script to clear the Global variables can be incorporated either in the Tests or Pre-Request Script tab
To clear the Global variable, the script should be −To clear the Global variable, the script should be −
pm.globals.unset('<name of Global variable>')
Let us try to clear the Global variable url.
Step1 − Add the below script in the Pre-request Script tab −
pm.globals.unset('url')
Step2 − Click on Send to execute a request.
Step3 − After the Response is received, click on the eye icon to the right upper corner of the Postman application. Now, it no longer shows the Global variable url which was previously available.
- Related Articles
- Global Scope Variables in Postman?
- How to set a global variable in Postman?
- How to create a Global Variable in Postman?
- How to use Global Variable in Postman Request?
- How to Use Environment Variables in Postman?
- How to declare global Variables in JavaScript?
- How to declare global variables in Android?
- How to use global variables in Ruby?
- How to use Global Variables in JavaScript?
- How to minimize the use of global variables in JavaScript?
- Global variables in Java
- How and why to avoid global variables in JavaScript?
- How to add or apply global variables in Vue.js?
- Global Variables in Lua Programming
- What are Local Scope Variables in Postman?

Advertisements