RemovePermission

The removePermission method is used to delete custom permissions from an Antelope account. It returns an Action instance detailing the permission removal. The action can then be signed and executed on-chain using the SessionKit Transact method.

Usage

The removePermission method is available on any Account instance. Here is an example of how to use it:

const action = testAccount.removePermission("claim")

In the example above, an action that deletes the claim permission is created.

Arguments

  • permissionName: The name of the permission that is to be removed.

Return Value

The removePermission method returns an Action instance. This action can then be passed to the SessionKit Transact method for execution.