Delete filings that are no longer needed. This endpoint supports three input modes:
- By filing IDs — pass an array of specific filing UUIDs to delete
- V2 filter — pass
registration_tax_type_id with statuses and optional due_after to delete matching filings
- V1 filter — pass
corporation_id and state for legacy filings
Filings with status FILED cannot be deleted. Include only non-filed statuses in the statuses filter.
Request body
Option 1: delete by filing IDs
Array of filing UUIDs to delete. Maximum 100 items.Example: ["a1b2c3d4-...", "e5f6a7b8-..."]
Option 2: V2 filter by registration
The V2 registration content ID. Deletes all filings matching the filters for this registration.
Required when using registration_tax_type_id. Only filings in these statuses are deleted. FILED is not allowed.Example: ["SCHEDULED", "UPCOMING"]
Optional date filter. Only filings with a due date after this date are deleted. Format: YYYY-MM-DD.Example: "2025-06-01"
Option 3: V1 filter by state
The corporation UUID. Required for V1 filter mode.
State code. Required for V1 filter mode.
curl --request DELETE \
--url 'https://transaction-tax.api.in.commenda.io/api/v1/internal/filings/bulk/delete' \
--header 'Authorization: Bearer <admin_token>' \
--header 'Content-Type: application/json' \
--data '{
"filing_ids": [
"a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"b2c3d4e5-f6a7-8901-bcde-f12345678901"
]
}'
{
"deleted_ids": [
"a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"b2c3d4e5-f6a7-8901-bcde-f12345678901"
],
"total_deleted": 2
}