Deleting a File System

Learn how to permanently delete a File Storage file system.

Before you can delete the root file system of a clone tree, all of its descendants must first be deleted or detached. If a file system has only a single clone, you can delete the file system and detach the clone with the same operation. See Cloning File Systems for more information.

Caution

You can't undo this operation. Any data in a file system is permanently deleted with the file system. Snapshots of the file system are permanently deleted with the file system. You can't recover a deleted file system or its snapshots.

To delete related resources, see the following topics:

    1. Open the navigation menu and click Storage. Under File Storage, click File Systems.
    2. In the List scope section, under Compartment, select a compartment.

    3. Click the name of the file system that you want to delete.
    4. On the file system's details page, delete all the file system's exports:

      • In Exports, select the check box for all the exports listed, and then click Delete.
    5. When all of the exports are deleted, click Delete to delete the file system.
    6. If the file system has only a single clone, you can choose to detach that clone from the parent file system before deleting the parent. In the Delete file system window, select Detach clone.
    7. Click Delete.
  • You can use the CLI to delete a file system if no non-deleted export resources reference it.

    Use the fs file-system delete command and required parameters to delete a file system:

    oci fs file-system delete --file-system-id <file_system_OCID>

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the DeleteFileSystem operation to delete a file system.

    For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.