Delete logs
You can delete log entries. To do this, delete a log group or selected log streams:
You can delete the logs:
- through the control panel;
- using the AWS CLI;
- or SDK client.
If the logged resource continues to work and creates new logs, deleted Streams and Groups will be restored automatically. Deleted events will not be restored.
Delete a group of logs
Deleting a log group will delete all streams and events in that group. :::
Control panel
SDK client
AWS CLI
-
In the dashboard, on the top menu, click Products and select Logs.
-
Go to the Logs section.
-
From the menu of the log group, select Delete Log Group.
-
Enter the name of the log group to confirm the deletion.
-
Click Delete.
Delete Streaming Logs
Deleting a log stream will delete the events that are part of that stream.
Control panel
SDK client
AWS CLI
-
In the dashboard, on the top menu, click Products and select Logs.
-
Go to the Logs section.
-
From the menu of the log group, select Delete Selected Log Streams.
-
Select log streams.
-
Enter the name of the log group to confirm the deletion.
-
Click Delete.