Deleting a Log Group

Delete a log group from a compartment.

  • You can’t delete a log group that contains logs. Either delete the logs first or move them to another log group.

    Note

    You can't move, edit, or delete the default log group.
    1. Open the navigation menu and click Observability & Management. Under Logging, click Log Groups.
    2. Under List scope, select the compartment that contains the log group that you want to delete.
    3. Under Log Group, click the name of the log group.
    4. On the log group details page, click Delete.
    5. In the confirmation dialog box, click Delete.

      The log group is removed from the Log Groups page.

  • Use the oci logging log-group delete command and required parameters to delete a log group:

    oci logging log-group delete --log-group-id log_group_ocid [OPTIONS]

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

  • Run the DeleteLogGroup operation to delete a log group.