Deleting a Bastion

Delete a bastion that's no longer necessary.

  • When you delete a bastion that has active sessions, the sessions are terminated.

    1. Open the navigation menu and click Identity & Security. Click Bastion.
    2. Under List scope, select the compartment where the bastion was created.
    3. Click the Actions menu to the right side of the bastion, and then select Delete bastion.
    4. Enter the name of the bastion to delete.
    5. Click Delete.
  • Use the oci bastion bastion delete command and required parameters to delete a bastion:

    oci bastion bastion delete --bastion-id <bastion_ocid> [OPTIONS]

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

  • Run the DeleteBastion operation to delete a bastion.