> ## Documentation Index
> Fetch the complete documentation index at: https://developer.nomba.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete a saved card

> Delete a saved card so it can't be charged again.

> [card] [Delete tokenized card data](https://developer.nomba.com/nomba-api-reference/online-checkout/delete-tokenized-card-data.md)

Delete a saved card when the customer removes it or cancels their subscription. A deleted card can't be charged again. Also delete the token from your own database, so your scheduled job doesn't try to charge it.

To replace a card, ask the customer to make a new card-saving payment, then delete the old card.

# `DELETE /v1/checkout/tokenized-card-data`

> [!NOTE]
>
> This request sends a body with `DELETE`. Some HTTP clients and proxies remove the body from DELETE requests. If you get an error saying `tokenKey` is missing, check that your client sends the body.

#### Headers

**Authorization** `string` *required*

`Bearer <access_token>`

**accountId** `string` *required*

Your account ID

#### Request body

**tokenKey** `string` *required*

The card token to delete

#### Response body

**data** `object` *required*

**object**

**status** `boolean` *required*

`true` when the card was deleted

**message** `string` *required*

Response message

```bash Request theme={null}
curl --request DELETE \
  --url https://api.nomba.com/v1/checkout/tokenized-card-data \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --header 'accountId: <accountId>' \
  --data '{
    "tokenKey": "1321595684"
  }'
```

```json Success response (200) theme={null}
{
  "code": "00",
  "description": "Success",
  "data": {
    "status": true,
    "message": "success"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.