Is it possible to delete transactions via the API?


I can't figure out how to delete a transaction via the API.

I've tried sending a PUT to /budgets/{budget_id}/transactions/{transaction_id} with

{"transaction": {"deleted": true}}

I get back a 200, but the transaction still shows "deleted": false. I also tried hitting the same endpoint with a DELETE but get a 404.

Is this possible?

7replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • I'll let someone from support make the official answer, but just looking at the api docs (the same one you linked) the data to pass doesn't show deleted as an option.


      "transaction": {
        "account_id": "string",
        "date": "string",
        "amount": 0,
        "payee_id": "string",
        "payee_name": "string",
        "category_id": "string",
        "memo": "string",
        "cleared": "cleared",
        "approved": true,
        "flag_color": "red",
        "import_id": "string"
    • Dennis Whitney - Deletion is not currently supported through the API.

  • In an app I'm working on, I'm working around this limitation by setting the transaction amount to `0` instead of deleting.  It's not ideal, but is good enough for my purposes.

    I haven't tried this. but could also create a special closed "attic" tracking account and move the "deleted" transaction there (moving transactions is supported by changing the `account_id`).  That'll get the transaction out of sight.

    +1 for wanting a proper way to delete a transaction, though!

  • Hello everyone. Are there any plans to add a way to delete a transaction?

    • Alexandr Gorodiolov Thanks for asking about this! There aren't any current plans to add deleting transactions to the API, but if you'd like to see this, please send your idea over to our Product team for consideration by submitting a Feature Request!

      • Igor
      • Software Developer
      • ingvarwolf
      • 4 wk ago
      • Reported - view

      Sarah (YNAB Support) I have sent CRUD feature request 7 months ago and still didn't get any answer on that.

    • Igor We can't guarantee if or when a particular request will be added, but they are considered in planning future work. I do see that our team responded to your CRUD request and sent it over to our developers.

Like1 Follow
  • 4 wk agoLast active
  • 7Replies
  • 246Views
  • 9 Following