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. On the Bastions list page, find the bastion that you want to work with. If you need help finding the list page or the bastion, see Listing Bastions.
    2. From the Actions menu (Actions Menu) for the bastion, select Delete bastion.
    3. Enter the name of the bastion you want to delete.
    4. Select 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.