deleteScope()
Deletes a machine scope, removing access between two machines.
function deleteScope(machineId: string, otherMachineId: string): Promise<MachineScope>
- Name
machineId
- Type
string
- Description
The ID of the machine that currently has access to the target machine.
- Name
otherMachineId
- Type
string
- Description
The ID of the machine that will no longer be accessible by the source machine.
const machineId = 'mch_123'
const otherMachineId = 'mch_456'
const response = await clerkClient.machines.deleteScope(machineId, otherMachineId)
Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint DELETE/machines/{machine_id}/scopes/{other_machine_id}
. See the BAPI reference for more information.
Feedback
Last updated on