DevelopersAPIReferenceplanItems
Clean
Deletes every plan item whose categoryOrCategoryGroupId is not in planLevels (legacy cleanPlanItems). An empty planLevels deletes them all.
POST
bearerAuthheader
Authorization<token>A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.
walletId*stringRow uuid
Format
uuidapplication/json- body
planLevels*array<>How many plan items were deleted
application/json- response
deleted*numbercurl -X POST 'https://api.walletguide.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/planItems/clean' \ -H 'Content-Type: application/json' \ -d '{ "planLevels": [ "63972d4e-d50a-409c-b276-98f0284d98b7" ]}'Example Response200
{ "deleted": 0}