Clean up stale database-table sources
Deletes a workflow's source records whose table names are not in the keep list, removing stale entries from the sidebar.
POST
/api/database-tables/sources/cleanupBody
workflowIdstringrequiredkeepTableNamesstring[]requiredRequest
curl
curl -X POST https://platform.trickest.com/api/database-tables/sources/cleanup \
-H "Authorization: Bearer $TRICKEST_TOKEN" \
-H "Content-Type: application/json" \
-d '{ }'Responses
200Count of stale sources removed
deletedintegerrequired400Bad Request – validation error or malformed input
codestringmessagestring401Unauthorized – missing or expired token
codestringmessagestring500Internal Server Error
codestringmessagestring