DevelopersAPIReferenceplanItems
DeleteUnused
Walks each plan item's occurrence months inside 2020-01 → now+10y (later-created items win a month); items that never win a month are unused and deleted…
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
uuidHow many plan items were deleted
application/json- response
deleted*numbercurl -X POST 'https://api.walletguide.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/planItems/deleteUnused'Example Response200
{ "deleted": 0}Clean
Deletes every plan item whose categoryOrCategoryGroupId is not in planLevels (legacy cleanPlanItems). An empty planLevels deletes them all.
Batch
Run several data slices in one round trip. Each entry in slices is { type, _id?, ...params }: type names the slice and the rest are its params, the same…