def remove_request(record, command):
    """Return record with request for "command" removed"""

    requests = record["requests"]
    new_requests = []
    for i in requests:
        if i.split("|")[1] != command:
            new_requests.append(i)
    record["requests"] = new_requests
    return record