Malformed url on delete method