Passer au contenu principal
DELETE
https://{tenantDomain}/api/v2
/
grants
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;

public partial class Examples
{
    public async Task Example() {
        var client = new ManagementClient(
            token: "<token>"
        );

        await client.UserGrants.DeleteByUserIdAsync(
            new DeleteUserGrantByUserIdRequestParameters {
                UserId = "user_id"
            }
        );
    }

}

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de requête

user_id
string
requis

user_id of the grant to delete.

Réponse

User grant successfully deleted.