Delete token
DELETE/api/admin/enrollment-tokens/:token_id/purge
Hard-delete an enrollment token row (removes it from the list entirely). Unlike revoke (which keeps an audit-visible 'revoked' row), this is a permanent deletion — used to tidy up obsolete/revoked tokens.
Request
Responses
- 200
- 401
- 403
- 422
Successful Response
The token is missing, invalid or expired. Refresh it, or sign in again.
Your role does not allow this. The detail names the missing permission or role.
Validation Error