## Delete Gateway Logs `ai_gateway.logs.delete(strgateway_id, LogDeleteParams**kwargs) -> LogDeleteResponse` **delete** `/accounts/{account_id}/ai-gateway/gateways/{gateway_id}/logs` Delete Gateway Logs ### Parameters - `account_id: str` - `gateway_id: str` gateway id - `filters: Optional[Iterable[Filter]]` - `key: Literal["id", "created_at", "request_content_type", 20 more]` - `"id"` - `"created_at"` - `"request_content_type"` - `"response_content_type"` - `"request_type"` - `"success"` - `"cached"` - `"provider"` - `"model"` - `"model_type"` - `"cost"` - `"tokens"` - `"tokens_in"` - `"tokens_out"` - `"duration"` - `"feedback"` - `"event_id"` - `"metadata.key"` - `"metadata.value"` - `"authentication"` - `"wholesale"` - `"compatibilityMode"` - `"dlp_action"` - `operator: Literal["eq", "neq", "contains", 2 more]` - `"eq"` - `"neq"` - `"contains"` - `"lt"` - `"gt"` - `value: SequenceNotStr[Union[Optional[str], float, bool]]` - `Optional[str]` - `float` - `bool` - `limit: Optional[int]` - `order_by: Optional[Literal["created_at", "provider", "model", 8 more]]` - `"created_at"` - `"provider"` - `"model"` - `"model_type"` - `"success"` - `"cached"` - `"cost"` - `"tokens_in"` - `"tokens_out"` - `"duration"` - `"feedback"` - `order_by_direction: Optional[Literal["asc", "desc"]]` - `"asc"` - `"desc"` ### Returns - `class LogDeleteResponse: …` - `success: bool` ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) log = client.ai_gateway.logs.delete( gateway_id="my-gateway", account_id="0d37909e38d3e99c29fa2cd343ac421a", ) print(log.success) ``` #### Response ```json { "success": true } ```