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. 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 the exports are deleted, click Delete to delete the file system.
  • 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.