Added 'delete' parameter to 'set_relationship'