Switched delete_models to use a for loop to properly delete all relationships.