Crash my Strapi project with relationship

Now that I understand better how Strapi works, the easiest way to solve this was to make sure I have my project under version control and commit frequently.
That way if I make a mistake I just revert my code and delete the database entries accordingly.