@handle(methods.delete_param, env='tid', parameter_name='id')
async def delete_param(self, env: data.Environment, parameter_name: str, resource_id: str) -> Apireturn:
    if (resource_id is None):
        params = (await data.Parameter.get_list(environment=env.id, name=parameter_name))
    else:
        params = (await data.Parameter.get_list(environment=env.id, name=parameter_name, resource_id=resource_id))
    if (len(params) == 0):
        return 404
    param = params[0]
    (await param.delete())
    metadata = {'message': 'Recompile model because one or more parameters were deleted', 'type': 'param', 'params': [(param.name, param.resource_id)]}
    warnings = (await self.server_slice._async_recompile(env, False, metadata=metadata))
    return attach_warnings(200, None, warnings)
@handle(methods.delete_param, env='tid', parameter_name='id')
async def delete_param(self, env: data.Environment, parameter_name: str, resource_id: str) -> Apireturn:
    if (resource_id is None):
        params = (await data.Parameter.get_list(environment=env.id, name=parameter_name))
    else:
        params = (await data.Parameter.get_list(environment=env.id, name=parameter_name, resource_id=resource_id))
    if (len(params) == 0):
        return 404
    param = params[0]
    (await param.delete())
    metadata = {'message': 'Recompile model because one or more parameters were deleted', 'type': 'param', 'params': [(param.name, param.resource_id)]}
    warnings = (await self.server_slice._async_recompile(env, False, metadata=metadata))
    return attach_warnings(200, None, warnings)