{"record":{"id":"0b52d2ac9d751a4a","repo":"hoppscotch/hoppscotch","slug":"pm-vault-unset-is-not-supported-in-hoppscotch-p","errorCode":null,"errorMessage":"pm.vault.unset() is not supported in Hoppscotch (Postman Vault feature)","messagePattern":"pm\\.vault\\.unset\\(\\) is not supported in Hoppscotch \\(Postman Vault feature\\)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/hoppscotch-js-sandbox/src/bootstrap-code/post-request.js","lineNumber":3987,"sourceCode":"          }\n        )\n      }\n    },\n\n    // Postman Vault (unsupported)\n    vault: {\n      get: () => {\n        throw new Error(\n          \"pm.vault.get() is not supported in Hoppscotch (Postman Vault feature)\"\n        )\n      },\n      set: () => {\n        throw new Error(\n          \"pm.vault.set() is not supported in Hoppscotch (Postman Vault feature)\"\n        )\n      },\n      unset: () => {\n        throw new Error(\n          \"pm.vault.unset() is not supported in Hoppscotch (Postman Vault feature)\"\n        )\n      },\n    },\n\n    // Postman Visualizer (unsupported)\n    visualizer: {\n      set: () => {\n        throw new Error(\n          \"pm.visualizer.set() is not supported in Hoppscotch (Postman Visualizer feature)\"\n        )\n      },\n      clear: () => {\n        throw new Error(\n          \"pm.visualizer.clear() is not supported in Hoppscotch (Postman Visualizer feature)\"\n        )\n      },\n    },","sourceCodeStart":3969,"sourceCodeEnd":4005,"githubUrl":"https://github.com/hoppscotch/hoppscotch/blob/1acb8a3a7581e4db32ba0d529170c4669a2e1053/packages/hoppscotch-js-sandbox/src/bootstrap-code/post-request.js#L3969-L4005","documentation":"Thrown by `pm.vault.unset()` (post-request.js:3987). Completes the unsupported-vault trio; deleting a vault entry has no Hoppscotch implementation, so the method always throws. Arguments are ignored.","triggerScenarios":"Calling `pm.vault.unset('apiKey')` in any script. Always throws.","commonSituations":"Porting Postman scripts that clear/rotate secrets via `pm.vault.unset`. Cleanup logic that wipes a credential at the end of a run.","solutions":["Remove the `pm.vault.unset(...)` call.","Manage secret lifecycle (create/delete) in the Hoppscotch UI or CI, not in-script.","If you need to clear a local value, `pw.env.unset('key')` for env-scoped variables.","Document vault operations as unsupported during collection migration."],"exampleFix":"// before\npm.vault.unset('apiKey')\n// after\npw.env.unset('apiKey')","handlingStrategy":"validation","validationCode":"// Don't call pm.vault.unset; clear env-scoped values if needed\npw.env.unset('apiKey')","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Remove `pm.vault.unset(...)` calls.","Manage secret lifecycle in the Hoppscotch UI or CI, not in-script.","Use `pw.env.unset()` for env-scoped values you must clear."],"tags":["vault","postman-compat","unsupported","secrets","stub"],"backgroundTag":null,"analyzedSha":"1acb8a3a7581e4db32ba0d529170c4669a2e1053","analyzedAt":"2026-08-12T11:34:52.648Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}