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

# How to delete a payment imported via the UI or API

> Remove payments imported manually or via the Upflow API by using the Delete Payment endpoint or by deleting them directly from the Upflow interface.

If you manually register / import payments [via your Upflow interface](/en-us/integrations/legacy-invoice-pipeline/import-payments-into-upflow), or import them using [the Upflow API](https://upflow.docs.apiary.io/) and you made a mistake -- don't worry; you can delete them. :)

# Deleting payments via the API

The Upflow API has a "[Delete Payment](https://developer.upflow.io/#tag/customers/delete/customers/%7BcustomerId%7D)" endpoint, through which you can remove any payment you have previously imported. As always, you can reference this payment by its Upflow ID or your own External ID (if initially imported).

# Deleting payments via the UI

Provided you have the necessary permissions\*, you can delete payments directly from the UI.

From the Payments list view:

<img src="https://mintcdn.com/upflow-04dc27cd/ChOL1st0PHnWPSQG/images/45487625737489.png?fit=max&auto=format&n=ChOL1st0PHnWPSQG&q=85&s=9d20c7046ca1c158fd53932eab790f67" alt="" width="640" data-path="images/45487625737489.png" />

From the Payment's detail page:

<img src="https://mintcdn.com/upflow-04dc27cd/ChOL1st0PHnWPSQG/images/45487609515281.png?fit=max&auto=format&n=ChOL1st0PHnWPSQG&q=85&s=05b2fa71889ec7df44fd3f050c7d6549" alt="" width="640" data-path="images/45487609515281.png" />

From the linked invoice's page:

<img src="https://mintcdn.com/upflow-04dc27cd/ChOL1st0PHnWPSQG/images/45487599133841.png?fit=max&auto=format&n=ChOL1st0PHnWPSQG&q=85&s=7e1af98e055e3d90315722579b109e4f" alt="" width="640" data-path="images/45487599133841.png" />

### Who can delete payments?

All Admin users, regardless of their position can delete payments from the UI.

However, for Member users:

* Finance user = can delete payments
* Accountant = can't delete payments
* Account manager = can't delete payments

Learn more about [Roles & Positions](/en-us/upflow-configuration/your-teams-access/invite-and-manage-your-organizations-users).
