Deno.Permissions.prototype.revoke - Deno documentation
method Deno.Permissions.prototype.revoke
Permissions.prototype.revoke(desc: PermissionDescriptor): Promise<PermissionStatus>

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