def METHOD_NAME(self, request: Request, project, key_id) -> Response:
    """
    Delete a client key for a given project.
    """
    try:
        key = ProjectKey.objects.get(
            project=project, public_key=key_id, roles=F("roles").bitor(ProjectKey.roles.store)
        )
    except ProjectKey.DoesNotExist:
        raise ResourceDoesNotExist
    self.create_audit_entry(
        request=request,
        organization=project.organization,
        target_object=key.id,
        event=audit_log.get_event_id("PROJECTKEY_REMOVE"),
        data=key.get_audit_log_data(),
    )
    key.METHOD_NAME()
    return Response(status=204)