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

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

        await client.Users.Sessions.DeleteAsync(
            "user_id"
        );
    }

}

Autorisations

Authorization
string
header
requis

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

Paramètres de chemin

user_id
string
requis

ID of the user to get sessions for

Réponse

Session deletion request accepted.