Use correct url for the delete share request

Modify delete function to set the right url for deleting the share