Nebius Israel
Contact usConsole
  • GPU
  • Docs
© 2023 Nebius Israel Ltd
Compute Cloud
  • Container Solution
  • Access management
  • Pricing policy
  1. Step-by-step guides
  2. File storage
  3. Deleting file storage

Deleting file storage

  1. Detach file storage from all the VMs it's attached to.

  2. Delete file storage in Compute Cloud:

    Management console
    Terraform
    API
    1. In the management console, select the folder where your file store is located.
    2. Select Compute Cloud.
    3. In the left-hand panel, select File storages.
    4. In the line of the appropriate file storage, click and select Delete.
    5. In the window that opens, click Delete.
    1. If you do not have Terraform yet, install it and configure the Nebius Israel provider.

    2. Open the Terraform configuration file and delete the fragment with the storage description:

      Sample storage description in the Terraform configuration
      ...
      resource "yandex_compute_filesystem" "default" {
        name  = "fs-name"
        type  = "network-ssd"
        zone  = "il1-a"
        size  = 150
      }
      ...
      
    3. Apply the changes:

      1. In the terminal, change to the folder where you edited the configuration file.

      2. Make sure the configuration file is correct using the command:

        terraform validate
        

        If the configuration is correct, the following message is returned:

        Success! The configuration is valid.
        
      3. Run the command:

        terraform plan
        

        The terminal will display a list of resources with parameters. No changes are made at this step. If the configuration contains errors, Terraform will point them out.

      4. Apply the configuration changes:

        terraform apply
        
      5. Confirm the changes: type yes in the terminal and press Enter.

    You can verify that the storage has been deleted using the management console or this CLI command:

    yc compute filesystem list
    

    Use the delete REST API method for the Filesystem resource or the FilesystemService/Delete gRPC API call.

© 2023 Nebius Israel Ltd