async def DeleteURIs(self, request, context):
    logger.info(f'Got request to delete URIs: {request.uris}.')
    failed_uris = []
    for plugin_uri in request.uris:
        (plugin, uri) = decode_plugin_uri(plugin_uri)
        for env in self._uris_to_envs.get(uri, []):
            if (env in self._env_cache):
                del self._env_cache[env]
        if (plugin == 'working_dir'):
            if (not self._working_dir_manager.delete_uri(uri)):
                failed_uris.append(uri)
        elif (plugin == 'py_modules'):
            if (not self._py_modules_manager.delete_uri(uri)):
                failed_uris.append(uri)
        elif (plugin == 'conda'):
            if (not self._conda_manager.delete_uri(uri)):
                failed_uris.append(uri)
        else:
            raise ValueError(f'RuntimeEnvAgent received DeleteURI request for unsupported plugin {plugin}. URI: {uri}')
    if failed_uris:
        return runtime_env_agent_pb2.DeleteURIsReply(status=agent_manager_pb2.AGENT_RPC_STATUS_FAILED, error_message=f'Local files for URI(s) {failed_uris} not found.')
    else:
        return runtime_env_agent_pb2.DeleteURIsReply(status=agent_manager_pb2.AGENT_RPC_STATUS_OK)
async def DeleteURIs(self, request, context):
    logger.info(f'Got request to delete URIs: {request.uris}.')
    failed_uris = []
    for plugin_uri in request.uris:
        (plugin, uri) = decode_plugin_uri(plugin_uri)
        for env in self._uris_to_envs.get(uri, []):
            if (env in self._env_cache):
                del self._env_cache[env]
        if (plugin == 'working_dir'):
            if (not self._working_dir_manager.delete_uri(uri)):
                failed_uris.append(uri)
        elif (plugin == 'py_modules'):
            if (not self._py_modules_manager.delete_uri(uri)):
                failed_uris.append(uri)
        elif (plugin == 'conda'):
            if (not self._conda_manager.delete_uri(uri)):
                failed_uris.append(uri)
        else:
            raise ValueError(f'RuntimeEnvAgent received DeleteURI request for unsupported plugin {plugin}. URI: {uri}')
    if failed_uris:
        return runtime_env_agent_pb2.DeleteURIsReply(status=agent_manager_pb2.AGENT_RPC_STATUS_FAILED, error_message=f'Local files for URI(s) {failed_uris} not found.')
    else:
        return runtime_env_agent_pb2.DeleteURIsReply(status=agent_manager_pb2.AGENT_RPC_STATUS_OK)