---
title: "Remove a payment method"
method: DELETE
path: "/v1/billing/payment-methods/{payment_method_id}"
tags: ["billing"]
---

# Remove a payment method

`DELETE /v1/billing/payment-methods/{payment_method_id}`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/billing/payment-methods/{payment_method_id}`
- Auth: HTTP bearer

Detach the card from Stripe and delete the local record. Does not disable auto-refill.

## Path parameters

- `payment_method_id` string, uuid, required

## Headers

- `X-Tenant-Id` string, nullable

## Response `204`

Successful Response

## Other responses

- `400`: Malformed request (unknown plan, or no billing account yet).
- `401`: Unauthorized
- `403`: Forbidden. Inspect response body `code` for the specific reason (for example: PERMISSION_DENIED, EMAIL_NOT_VERIFIED, TENANT_ACCESS_REQUIRED, ROLE_UNRESOLVED)
- `404`: No such payment method for this workspace.
- `409`: Conflict
- `422`: Validation error
- `502`: The payment provider call failed.
- `503`: Billing is not configured on this deployment.

---

[API](https://skmtc.dev/patricia/apis/patricia-api.md) · [All operations](https://skmtc.dev/patricia/apis/patricia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/patricia/apis/patricia-api/revisions/0dfb44495ea1?raw)
