Skip to main content
method Deno.Permissions.prototype.revoke
Permissions.prototype.revoke(desc: PermissionDescriptor): Promise<PermissionStatus>
Deprecated

Revokes a permission, and resolves to the state of the permission.

import { assert } from "jsr:@std/assert";

const status = await Deno.permissions.revoke({ name: "run" });
assert(status.state !== "granted")

Parameters

Return Type

Back to top