The identifier of the user.
Hard delete a user
POST
/admin/v1/users/{userId}:purgeHard delete the specified user. The user must be marked for deletion before it can be purged.
Returns
curl https://api.userhub.com/admin/v1/users/usr_MKFxzgJaAH8JQ4:purge \
-H "Authorization: Bearer $USERHUB_ADMIN_KEY" \
-X POST
const res = await adminApi.users.purge(
"usr_MKFxzgJaAH8JQ4",
);
res, err := adminApi.Users().Purge(
context.Background(),
"usr_MKFxzgJaAH8JQ4",
nil,
)
$res = $adminApi->users->purge(
userId: 'usr_MKFxzgJaAH8JQ4',
);
res = admin_api.users.purge(
user_id="usr_MKFxzgJaAH8JQ4",
)
Response bodyJSON
{}