'Deletes a volume based on volume uri.'

def delete_by_uri(self, uri, sync=False, force_delete=False, coprhdonly=False, synctimeout=0):

    params = ''
    if force_delete:
        params += ('&' if ('?' in params) else '?')
        params += ('force=' + 'true')
    if (coprhdonly is True):
        params += ('&' if ('?' in params) else '?')
        params += ('type=' + 'CoprHD_ONLY')
    (s, h) = common.service_json_request(self.ipaddr, self.port, 'POST', (Volume.URI_DEACTIVATE.format(uri) + params), None)
    if (not s):
        return None
    o = common.json_decode(s)
    if sync:
        return self.check_for_sync(o, sync, synctimeout)
    return o
