Added an overwrite for the delete method so that upon deletion of a definition, related models and their related ones are deleted.