# Delete User
source: https://developer.mastercard.com/priceless-planet-carbon-tracker/documentation/use-cases/delete_user/index.md

## Overview {#overview}

The `POST /issuers/user-deletions` endpoint deletes one or more registered users from the CCE platform.

The application completes user deletions within 24 hours of a successful response. It also deletes all payment cards associated with the user.

## Pre-requisites {#pre-requisites}

To access this service, the issuer is required to fulfill these conditions:

* The consumer must enroll on the CCE platform.
* The issuer must store the `userid` stored for the requesting consumer.

Tip: To create your project on Mastercard Developers, refer to the [Quick Start Guide](https://developer.mastercard.com/priceless-planet-carbon-tracker/documentation/quick-start-guide/index.md) for more information.

## Sequence Diagram {#sequence-diagram}

The following sequence diagram shows the order of events for a solution that uses the `POST /issuers/user-deletions` endpoint.
Diagram delete_user

## Execution Steps {#execution-steps}

The following details the steps in the above sequence diagram:

1. The issuer sends the request for deleting one or more user details from the Carbon Calculator Experience platform.
2. The issuer app sends the request to delete one or more users to the issuer server.
3. The issuer server sends the request to delete one or more users to the `POST /issuers/user-deletions` endpoint.
4. The Carbon Calculator Experience application validates the request.
5. The Carbon Calculator Experience application deletes all payment cards associated with the user along with the user details.
6. The Carbon Calculator Experience application returns the deleted user IDs to the issuer server.
7. The issuer server returns the deleted user IDs to the issuer app.
8. (Optional) The issuer app displays the successfully deleted user IDs to the consumer.

## Error Messages {#error-messages}

You receive an error response for an invalid request or any missing request parameter.
Note: For more information about the error codes, refer to the [Code and Formats](https://developer.mastercard.com/priceless-planet-carbon-tracker/documentation/code-and-formats/index.md) section.

## Endpoint {#endpoint}


API Reference: `GET /issuers/user-deletions`

## Sample Request and Responses {#sample-request-and-responses}

For more details on the sample request and response, refer to the [How to call the Delete User API](https://developer.mastercard.com/priceless-planet-carbon-tracker/tutorial/test-cases/step3/index.md) tutorial.
