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 run and creates new logs, the deleted streams and groups will be restored automatically. Deleted events will not be restored.
Delete a log group
Deleting a log group will remove all streams and events in that group. :::
Control panel
SDK client
AWS CLI
-
In the control panel, on the top menu, click Products and select Logs.
-
Go to 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
Deleting a log stream will remove all events contained in that stream.
Control panel
SDK client
AWS CLI
-
In the control panel, on the top menu, click Products and select Logs.
-
Go to the Logs section.
-
In the menu of the log group, select Delete selected log streams.
-
Select log streams.
-
Enter the log group name to confirm the deletion.
-
Click Delete.