REST API

OAuth2 Endpoint

Updated: April 3, 2025

Garbage Collect Expired OAuth2 Tokens

DELETE /management/oauth2/expired

Garbage collect all the expired OAuth2 tokens.

Response

If successful, returns a bulk status entity representing the bulk action status of the garbage collection bulk action.

The status can be monitored using the Bulk Endpoint.

Status Codes

  • 200 OK - Success.
  • 409 Conflict - A Garbage collect is already in progress.

Sample

curl -X DELETE -u Administrator:Administrator \
http://localhost:8080/nuxeo/api/v1/management/oauth2/expired
{
  "entity-type": "bulkStatus",
  "commandId": "0e1e6800-631a-4e04-a47c-241ea7b3596a",
  "state": "SCHEDULED",
  "processed": 0,
  "error": false,
  "errorCount": 0,
  "total": 0,
  "action": "garbageCollectExpiredOAuth2Tokens",
  "username": "system",
  "submitted": "2023-02-26T12:13:31.361Z",
  "scrollStart": null,
  "scrollEnd": null,
  "processingStart": null,
  "processingEnd": null,
  "completed": null,
  "processingMillis": 0
}