Revoke M2M Access
To revoke M2M access, or remove access to an organization for your application, you must delete the association between its client grant(s) and the organization. Once this association is deleted, the application will no longer be permitted to use the organization when requesting new tokens for the API defined in the grant.
To remove the association between an application’s client grant and an organization via the Auth0 Dashboard:
Navigate to Organizations and choose the organization you wish to remove the association from.
Select the Machine-to-Machine Access tab.
Choose an application.
Uncheck the box next to the APIs you wish to disassociate with the organization.
Click Save.
Associations between application client grants and organizations can be deleted via the Disassociate client grants from organizations endpoint:
curl -X DELETE --location "https://{YOUR_DOMAIN}/api/v2/organizations/{ORG_id}/client-grants/{GRANT_ID}" \
--header 'authorization: Bearer MGMT_API_ACCESS_TOKEN' \
Was this helpful?