# List, retrieve, then delete a secure token.

List, retrieve, then delete a secure token.

1. OPTIONAL — lists secure tokens on the terminal, filtered by customer name, and extracts the first result's `secureTokenId`. Skip if you already hold the `secureTokenId`.
 [listSecureTokens](/api/list-secure-tokens)
2. OPTIONAL — retrieve the secure token to confirm its current state before deleting.
 [getSecureToken](/api/get-secure-token)
3. Delete the secure token and its stored payment details from the vault. Irreversible — the token and its `secureTokenId` cannot be recovered or reused. Returns 204 with no body.
 [deleteSecureToken](/api/delete-secure-token)

## Workflow diagram

```mermaid
flowchart TD
  step0["1. token search · API"]
  step1["2. token lookup · API"]
  step0 --> step1
  step2["3. delete token request · API"]
  step1 --> step2
```
