adjusting delete command for ManyToMany