Postman:如何在运行时删除/清除 postman 环境变量 [英] Postman: How to delete/clear postman environment variable at run-time

查看:115
本文介绍了Postman:如何在运行时删除/清除 postman 环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Is there any way to delete/clear postman environment variable using functions at runtime. I could possibly set to blank or some special value but is there a general way of doing things.

解决方案

Sandbox API pm.environment.unset(variableName) also allows to do that.

In case is you want to clear all environment variables at once - you might want to do: pm.environment.clear().

This will clear all your environment values.

Refer: https://learning.postman.com/docs/postman/scripts/postman-sandbox-api-reference/#pmenvironment

这篇关于Postman:如何在运行时删除/清除 postman 环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆