def METHOD_NAME(auth_client, api_keys, db, target_key, expected_status):
    response = auth_client.delete(f"/api/api-keys/{target_key}")
    assert response.status_code == expected_status
    deleted_key = db.query(ApiKey).filter(ApiKey.key == target_key).one_or_none()
    if expected_status == 200:
        assert deleted_key.deleted
    else:
        assert not deleted_key.deleted