Steps to reproduce:
1. Have Matterhorn up and running for a couple of days (workflows)
2. Try to clear the tables (e. g. using a "trunkate" feature) in order to start over
The data can't be removed because there are references (foreign key constraints) all over the place but no delete cascades.
Referenced data is deleted as a result of deleting data in the first place.