Delete a Consent API
On this page
This API is used to permanently delete a Consent. Deleting a Consent will also permanently delete all granted User Consent. This operation cannot be reversed and it may affect users across multiple tenants.
Request#
Delete the Consent identified by the Id on the URI.
DELETE/api/consent/{consentId}
OpenAPI Spec
Path Parameters#
consentIdThe unique Id of the Consent to delete.
Response#
This API does not return a JSON response body.
| Code | Description |
|---|---|
| 200 | The request succeeded. |
| 400 | The request was invalid or malformed. The response contains an Errors JSON object with the specific errors. FusionAuth also returns a 400 when the request needs a paid FusionAuth license and no license is present. |
| 401 | FusionAuth didn't authorize the request. The Authorization header is missing, the API key isn't valid, or the API key doesn't have permission for this endpoint and method. The response is empty. For more information, see Unauthorized Responses. |
| 404 | The object you requested doesn't exist. The response is empty. |
| 500 | FusionAuth had an internal error and logged a stack trace in the FusionAuth log files. The response is empty. |
| 503 | The search index is unavailable or returned an error, so FusionAuth can't complete the request. The response contains a JSON body. |
Related
APIs
Learn about the APIs for creating, retrieving, updating and deleting consents.
consentuser consentgdpr
APIs
API documentation for the FusionAuth Create a Consent API.
consentuser consentgdpr
APIs
API documentation for the FusionAuth Grant a User Consent API.
consentuser consentuser permission
APIs
API documentation for the FusionAuth Retrieve a Consent API.
consentuser consentgdpr