by Anne Krijger.
There is no referential integrity at the database level.
So yes, you can remove records but since a lot of Moodle tables have relations it is very likely that something will break. That may not be directly visible.