def METHOD_NAME(module_perms, function_role):
    """Create a filter and delete it afterwards.
    :id: 97d1093c-0d49-454b-86f6-f5be87b32775
    :expectedresults: The deleted filter cannot be fetched.
    :CaseImportance: Critical
    """
    filter_ = make_filter({'role-id': function_role['id'], 'permissions': module_perms})
    Filter.delete({'id': filter_['id']})
    with pytest.raises(CLIReturnCodeError):
        Filter.info({'id': filter_['id']})