Deleting a Log

Delete a log from a log group.

    1. Open the navigation menu and click Observability & Management. Under Logging, click Logs.
    2. Under List scope, select the compartment that contains the log that you want to delete.
    3. Click the name of the log.
    4. On the log details page, click Delete.
    5. In the confirmation dialog box, click Delete.
      Note

      If you're notified that an agent configuration is associated with the log, you can still delete the log.
  • Use the oci logging log delete command and required parameters to delete a log object from a log group:

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

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

  • Run the DeleteLog operation to delete a log object from a log group.