---
title: "Remove Payment Method"
method: DELETE
path: "/billing/remove-payment-method"
tags: ["billing"]
---

# Remove Payment Method

`DELETE /billing/remove-payment-method`

Cancel the user's active subscription and remove the stored payment method.

This endpoint is retained for frontend compatibility, but its behavior is
subscription-centric:
1. Cancels the user's active Stripe subscription immediately
2. Downgrades the user to the Hobby plan in Supabase
3. Removes the stored card from the Stripe customer

Args:
    request: Active subscription payment method ID shown in the UI
    auth: Authenticated user context

Returns:
    Success status with cancellation message

## Request body

- RemovePaymentMethodRequest — Request model for removing a payment method.
  - `payment_method_id` string, required — Stripe payment method ID to remove

## Response `200`

Successful Response

- SuccessResponse — Generic success response.
  - `success` boolean
  - `message` string, nullable
  - `data` object, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/revisions/31dfe831e079/schema)
