def METHOD_NAME(
    client, headers, record_w_restricted_file, users
):
    recid = record_w_restricted_file
    url = f"/records/{recid}/files/test.pdf"
    # Anonymous user can't delete a file
    response = client.delete(url, headers=headers)
    assert response.status_code == 405
    # Different user can't delete file
    login_user(client, users[1])
    response = client.delete(url, headers=headers)
    assert response.status_code == 405
    logout_user(client)
    # Owner can't delete a file
    login_user(client, users[0])
    response = client.delete(url, headers=headers)
    assert response.status_code == 405