'Deletes the specified version for an app.'

def DeleteVersion(self):

    if (not (self.options.app_id and self.options.version)):
        self.parser.error('Expected    an    <app_id>    argument,    a    <version>    argument    and    an    optional    <module>    argument.')
    if self.options.module:
        module = self.options.module
    else:
        module = ''
    rpcserver = self._GetRpcServer()
    response = rpcserver.Send('/api/versions/delete', app_id=self.options.app_id, version_match=self.options.version, module=module)
    print >>self.out_fh, response
