Deleting a Replication

Delete a File Storage replication resource.

Important

Deleting the replication resource also deletes its associated replication target. If the source file system and replication resource aren't available (such as in the case of an outage), then delete the replication target to make the target file system exportable for failover.

When you delete a replication resource, you can specify which delete mode you want to use. File Storage replication offers three modes to give you the most flexibility for your data recovery requirements. Delete modes aren’t available when deleting a replication target. During a disaster recovery operation where the source availability domain isn’t available, the replication resource isn’t accessible, and the replication process stops.

Graceful delete
  • If the replication is capturing, transferring, or applying, finish and then delete the replication.
  • If the replication is idle, delete the replication immediately.
Best for data safety. This option is moderately fast depending on how much data is being replicated. This option is called finish_cycle_if_capturing_or_applying by the File Storage API.
Replicate and delete
  • If the replication is capturing, transferring, or applying, finish the current cycle, start and finish one more cycle, and then delete the replication.
  • If the replication is idle, start and finish one more cycle, and then delete the replication.
Best for testing failover. This option is slowest, depending on how much data is being replicated and whether a delta cycle is already in progress when you delete the replication. This option is called one_more_cycle by the File Storage API.
Apply and delete
  • If the replication is applying or transferring, finish and then delete the replication.
  • If the replication is capturing or idle, delete the replication immediately.
Best for data safety during disaster recovery. This option is moderately fast depending on how much data is being replicated. This option is called finish_cycle_if_applying by the File Storage API.
    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 source file system.
    4. On the file system's details page, under Resources, click Replications.
    5. In the Replications list, find the replication you're interested in. Click the Actions menu (Actions Menu), and then click Delete.
    6. Select the Delete mode that you want to use.
    7. Click Delete.
      Note

      The amount of time that the replication takes to finish deleting depends on the mode you choose and the amount of data in the replication.
  • Use the fs replication delete command and required parameters to delete a replication:

    oci fs replication delete --replication-id <replication_OCID>

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the DeleteReplication operation to delete a replication.

    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.