adding relationship.delete and associated functions.