Reference documentation and code samples for the Stackdriver Logging V2 Client class DeleteLogRequest.
The parameters to DeleteLog.
Generated from protobuf messagegoogle.logging.v2.DeleteLogRequest
Namespace
Google \ Cloud \ Logging \ V2
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ log_name
string
Required. The resource name of the log to delete: * *projects/[PROJECT_ID]/logs/[LOG_ID]* *organizations/[ORGANIZATION_ID]/logs/[LOG_ID]* *billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]* *folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID]must be URL-encoded. For example,"projects/my-project-id/logs/syslog","organizations/123/logs/cloudaudit.googleapis.com%2Factivity". For more information about log names, seeLogEntry.
folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID]must be URL-encoded. For example,"projects/my-project-id/logs/syslog","organizations/123/logs/cloudaudit.googleapis.com%2Factivity".
For more information about log names, seeLogEntry.
folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID]must be URL-encoded. For example,"projects/my-project-id/logs/syslog","organizations/123/logs/cloudaudit.googleapis.com%2Factivity".
For more information about log names, seeLogEntry.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Logging V2 Client - Class DeleteLogRequest (1.32.3)\n\nVersion latestkeyboard_arrow_down\n\n- [1.32.3 (latest)](/php/docs/reference/cloud-logging/latest/V2.DeleteLogRequest)\n- [1.32.2](/php/docs/reference/cloud-logging/1.32.2/V2.DeleteLogRequest)\n- [1.31.3](/php/docs/reference/cloud-logging/1.31.3/V2.DeleteLogRequest)\n- [1.30.3](/php/docs/reference/cloud-logging/1.30.3/V2.DeleteLogRequest)\n- [1.29.0](/php/docs/reference/cloud-logging/1.29.0/V2.DeleteLogRequest)\n- [1.28.5](/php/docs/reference/cloud-logging/1.28.5/V2.DeleteLogRequest)\n- [1.27.1](/php/docs/reference/cloud-logging/1.27.1/V2.DeleteLogRequest)\n- [1.26.0](/php/docs/reference/cloud-logging/1.26.0/V2.DeleteLogRequest)\n- [1.25.5](/php/docs/reference/cloud-logging/1.25.5/V2.DeleteLogRequest)\n- [1.24.10](/php/docs/reference/cloud-logging/1.24.10/V2.DeleteLogRequest) \nReference documentation and code samples for the Stackdriver Logging V2 Client class DeleteLogRequest.\n\nThe parameters to DeleteLog.\n\nGenerated from protobuf message `google.logging.v2.DeleteLogRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Logging \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getLogName\n\nRequired. The resource name of the log to delete:\n\n- `projects/[PROJECT_ID]/logs/[LOG_ID]`\n- `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`\n- `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`\n- `folders/[FOLDER_ID]/logs/[LOG_ID]` `[LOG_ID]` must be URL-encoded. For example, `\"projects/my-project-id/logs/syslog\"`, `\"organizations/123/logs/cloudaudit.googleapis.com%2Factivity\"`.\n\nFor more information about log names, see\n[LogEntry](/php/docs/reference/cloud-logging/latest/V2.LogEntry).\n\n### setLogName\n\nRequired. The resource name of the log to delete:\n\n- `projects/[PROJECT_ID]/logs/[LOG_ID]`\n- `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`\n- `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`\n- `folders/[FOLDER_ID]/logs/[LOG_ID]` `[LOG_ID]` must be URL-encoded. For example, `\"projects/my-project-id/logs/syslog\"`, `\"organizations/123/logs/cloudaudit.googleapis.com%2Factivity\"`.\n\nFor more information about log names, see\n[LogEntry](/php/docs/reference/cloud-logging/latest/V2.LogEntry).\n\n### static::build"]]