Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Managed Service for MySQL
  • Getting started
  • Step-by-step instructions
    • All instructions
    • Information about existing clusters
    • Creating clusters
    • Connecting to databases
    • Stopping and starting clusters
    • Changing clusters
    • Connecting to DataLens
    • How to manage MySQL hosts
    • Database management
    • Database setup
    • Managing database users
    • Managing backups
    • Deleting clusters
    • Database migration to the Cloud
  • Concepts
    • Relationship between service resources
    • Host classes
    • Network in Managed Service for MySQL
    • Quotas and limits
    • Storage types
    • Backups
    • Replication
  • Access management
  • Pricing policy
    • Current pricing policy
    • Archive
      • Before February 1, 2020
  • API reference
    • Authentication in the API
    • gRPC
      • Overview
      • BackupService
      • ClusterService
      • DatabaseService
      • ResourcePresetService
      • UserService
      • OperationService
    • REST
      • Overview
      • Backup
        • Overview
        • get
        • list
      • Cluster
        • Overview
        • addHosts
        • backup
        • create
        • delete
        • deleteHosts
        • get
        • list
        • listBackups
        • listHosts
        • listLogs
        • listOperations
        • restore
        • start
        • stop
        • update
      • Database
        • Overview
        • create
        • delete
        • get
        • list
      • ResourcePreset
        • Overview
        • get
        • list
      • User
        • Overview
        • create
        • delete
        • get
        • grantPermission
        • list
        • revokePermission
        • update
      • Operation
        • Overview
        • get
  • Questions and answers
    • General questions
    • Questions about MySQL
    • All questions on the same page
  1. Step-by-step instructions
  2. Deleting clusters

Deleting clusters

    Warning

    After you delete a database cluster, its backups are kept for 7 days for recovery purposes. If you decide to restore a deleted cluster from its backup, you'll need its ID, so please store the cluster ID safely before deleting the cluster.

    Management console
    CLI
    Terraform
    1. Open the folder page in the management console.
    2. Select Managed Service for MySQL.
    3. Click for the necessary cluster and select Delete.

    If you don't have the Yandex.Cloud command line interface yet, install and initialize it.

    The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

    To delete a cluster, run the command:

    $ yc managed-mysql cluster delete <cluster name or ID>
    

    The cluster name and ID can be requested with a list of clusters in the folder.

    With Terraform, you can quickly create a cloud infrastructure in Yandex.Cloud. The infrastructure components are identified through configuration files that specify the required cloud resources and their parameters.

    Read more about Terraform in the documentation.

    Clusters created using Terraform can be deleted:

    1. In the command line, go to the folder with the Terraform configuration file.

    2. Delete resources using the command:

      terraform destroy
      

      Alert

      Terraform will delete all the resources that you created using it, such as clusters, networks, subnets, and VMs.

    3. Confirm the deletion of resources.

    Language
    Careers
    Privacy policy
    Terms of use
    © 2021 Yandex.Cloud LLC