Delete log entries
You can delete log entries. To do this, delete a log group or selected log streams:
You can delete logs:
- via the control panel;
- using AWS CLI;
- or an SDK client.
If the logged resource continues to operate and creates new logs, the deleted streams and groups will be restored automatically.Deleted events will not be restored.
Delete a log group
When you delete a log group, all streams and events of this group will be deleted.:::
Control panel
SDK client
AWS CLI
-
In the control panel, on the top menu, click Products and select Logs.
-
In the Logs section, in the menu of the log group, select Delete log group.
-
Enter the log group name to confirm the deletion.
-
Click Delete.
Delete a log stream
When you delete a log stream, the events included in this stream will be deleted.
Control panel
SDK client
AWS CLI
-
In the control panel, click Products in the top menu and select Logs.
-
In the Logs section, in the menu of the log group, select Delete selected log streams.
-
Select the log streams.
-
Enter the log group name to confirm the deletion.
-
Click Delete.