Endpoint to destroy user data
A call to this endpoint deletes the requested data type. Use it with care and always with user permission. The demo user is incapable of using this endpoint.
Parameters
X-Trace-Idstring<uuid>headerUnique identifier associated with this request.
objectsDataDestroyObjectnot_assets_liabilitiesbudgetsbillspiggy_banksrulesrecurringcategoriestagsobject_groupsaccountsasset_accountsexpense_accountsrevenue_accountsliabilitiestransactionswithdrawalsdepositstransfersrequiredqueryThe type of data that you wish to destroy. You can only use one at a time.
unusedArray<integer>queryOnly applies when "objects" is set to: not_assets_liabilities, accounts, asset_accounts, expense_accounts, revenue_accounts or liabilities.
If set to true, only unused accounts will be destroyed. This effectively cleans up the autocomplete dropdowns.
Response
Empty response when data has been destroyed.
Bad request
Unauthenticated
Page not found
Internal exception
Authorization
firefly_iii_authoauth2OAuth2 authorization code flow. Create a client on your installation's /profile page; it authorizes at /oauth/authorize and issues tokens at /oauth/token there. The URLs below are the demo site's. How to use the API walks through it.
local_bearer_authhttp (bearer)A Personal Access Token, sent as a bearer token. Create one on your installation under Options > Profile > OAuth > Personal Access Tokens.
