---
title: "Revoke a payment method"
method: DELETE
path: "/payment-methods/{paymentMethodId}"
tags: ["Payment Methods"]
---

# Revoke a payment method

`DELETE /payment-methods/{paymentMethodId}`

## Request

- Base URL: `https://api.sandbox.nevermined.app/api/v1`
- URL: `https://api.sandbox.nevermined.app/api/v1/payment-methods/{paymentMethodId}`
- Auth: HTTP bearer

Revokes (detaches) a saved payment method so it can no longer be used for delegated payments. Requires a Nevermined API key.

## Path parameters

- `paymentMethodId` string, required

## Response `200`

Payment method revoked

- unknown

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `404`: Not Found - Payment method does not exist

---

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