Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI Studio
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Logging
  • Getting started
    • All guides
    • Adding records
    • Reading records
    • Managing log group access permissions
      • Creating a log group
      • Updating a log group
      • Viewing monitoring charts
      • Deleting a log group
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Managing a log group
  3. Deleting a log group

Deleting a log group

Written by
Yandex Cloud
Updated at July 14, 2025

Note

The name of the default log group is default. You can delete it. However, the system will automatically recreate it if a service or application writes logs targeting the folder ID.

Management console
CLI
Terraform
API
  1. In the management console, select the folder where you want to delete a log group.
  2. Select Cloud Logging.
  3. Next to the log group, click and select Delete.
  4. In the window that opens, click Delete.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

To access a log group, use its name or unique ID. To find them out, get a list of log groups in the folder.

To delete a log group, run this command:

yc logging group delete --name=group

Result:

done (1s)
id: af3flf29t8**********
folder_id: aoek6qrs8t**********
cloud_id: aoegtvhtp8**********
created_at: "2023-06-24T09:56:38.970Z"
name: group
status: ACTIVE
retention_period: 3600s

If you do not have Terraform yet, install it and configure the Yandex Cloud provider.

To delete a log group created with Terraform:

  1. Open the Terraform configuration file and delete the section describing the log group.

    Example of a log group description in the Terraform configuration
    ...
    resource "yandex_logging_group" "group1" {
      name      = "test-logging-group"
      folder_id = "${data.yandex_resourcemanager_folder.test_folder.id}"
    }
    ...
    
  2. In the command line, navigate to the directory with the Terraform configuration file.

  3. Check the configuration using this command:

    terraform validate
    

    If the configuration is correct, you will get this message:

    Success! The configuration is valid.
    
  4. Run this command:

    terraform plan
    

    You will see a detailed list of resources. No changes will be made at this step. Terraform will show any errors found in the configuration.

  5. Apply the changes:

    terraform apply
    
  6. Type yes and press Enter to confirm the changes.

    You can check updates in the management console or using this CLI command:

    yc logging group list
    

To delete a custom log group, use the delete REST API method for the LogGroup resource or the LogGroupService/Delete gRPC API call.

Request example

The example below uses grpcurl. To run this example, authenticate with the API and clone the cloudapi repository.

Send this request:

grpcurl -rpc-header "Authorization: Bearer $(yc iam create-token)" \
   -d '{"log_group_id": "<log_group_ID>"}' \
   -import-path ~/cloudapi/ \
   -import-path ~/cloudapi/third_party/googleapis/ \
   -proto ~/cloudapi/yandex/cloud/logging/v1/log_group_service.proto \
logging.api.cloud.yandex.net:443 yandex.cloud.logging.v1.LogGroupService.Delete

Response:

{
  "id": "e23omac87b3a********",
  "description": "Delete log group",
  "createdAt": "2023-03-25T05:48:01.626155032Z",
  "createdBy": "ajego134p5h1********",
  "modifiedAt": "2023-03-25T05:48:01.626155032Z",
  "metadata": {
    "@type": "type.googleapis.com/yandex.cloud.logging.v1.DeleteLogGroupMetadata",
    "logGroupId": "e23ff0on5amv********"
  }
}

Was the article helpful?

Previous
Viewing monitoring charts
Next
Creating a log sink
© 2025 Direct Cursus Technology L.L.C.