Set relations delete endpoint to use correct id
Merge pull request #1761 from opf/fix/relations-cannot-be-deleted