Deleting entity list or IP address list
When you no longer want to keep a list entry in your entity set or IP address set, you can delete it. It might take a few minutes for the process to complete. For more information, see Important considerations for GuardDuty lists.
If the status of the list is Activating or Deactivating, you must wait for a few minutes before performing any action. For more information, see Understanding list statuses.
Choose one of the access methods to delete the list.
- Console
-
To delete entity list or IP address list
Open the GuardDuty console at https://console.amazonaws.cn/guardduty/
. -
In the navigation pane, choose Lists.
-
On the List page, select the tab in which you want to delete the list - Entity lists or IP address list.
-
In the selected tab, select the list that you want to delete.
-
Choose Actions, and then choose Delete.
The list status will change to Delete Pending. It might take a few minutes for the list to get deleted.
- API/CLI
-
To begin with the following procedures, you need the ID, such as
trustedEntitySetId
,threatEntitySetId
,trustedIpSet
, orthreatIpSet
, that is associated with the list resource you want to delete.To delete a trusted entity list
-
Run DeleteTrustedEntitySet. Make sure to provide the
detectorId
of the member account for which you want to delete this trusted entity list. To find thedetectorId
for your account and current Region, see the Settings page in the https://console.amazonaws.cn/guardduty/console, or run the ListDetectors API. -
Alternatively, you can do this by running the following Amazon Command Line Interface command:
aws guardduty delete-trusted-entity-set \ --detector-id
12abc34d567e8fa901bc2d34e56789f0
\ --trusted-entity-set-idd4b94fc952d6912b8f3060768example
Replace
detector-id
with the detector ID of the member account for which you will delete the trusted entity list, and other placeholder values that areshown in red
.
To deactivate threat entity lists
-
Run DeleteThreatEntitySet. Make sure to provide the
detectorId
of the member account for which you want to delete this threat entity list. To find thedetectorId
for your account and current Region, see the Settings page in the https://console.amazonaws.cn/guardduty/console, or run the ListDetectors API. -
Alternatively, you can do this by running the following Amazon Command Line Interface command:
aws guardduty delete-threat-entity-set \ --detector-id
12abc34d567e8fa901bc2d34e56789f0
\ --threat-entity-set-idd4b94fc952d6912b8f3060768example
Replace
detector-id
with the detector ID of the member account for which you will delete the threat entity list, and other placeholder values that areshown in red
.
To delete a trusted IP address list
-
Run DeleteIPSet. Make sure to provide the
detectorId
of the member account for which you want to delete this trusted IP address list. To find thedetectorId
for your account and current Region, see the Settings page in the https://console.amazonaws.cn/guardduty/console, or run the ListDetectors API. -
Alternatively, you can do this by running the following Amazon Command Line Interface command and make sure to replace the
detector-id
with the detector ID of the member account for which you will delete the trusted IP address list.aws guardduty delete-ip-set \ --detector-id
12abc34d567e8fa901bc2d34e56789f0
\ --ip-set-idd4b94fc952d6912b8f3060768example
Replace
detector-id
with the detector ID of the member account for which you will delete the threat entity list, and other placeholder values that areshown in red
.
To delete threat IP list
-
Run DeleteThreatIntelSet. Make sure to provide the
detectorId
of the member account for which you want to delete this threat IP address list. To find thedetectorId
for your account and current Region, see the Settings page in the https://console.amazonaws.cn/guardduty/console, or run the ListDetectors API. -
Alternatively, you can do this by running the following Amazon Command Line Interface command and make sure to replace the
detector-id
with the detector ID of the member account for which you will delete the threat IP list.aws guardduty delete-threat-intel-set \ --detector-id
12abc34d567e8fa901bc2d34e56789f0
\ --threat-intel-set-idd4b94fc952d6912b8f3060768example
Replace
detector-id
with the detector ID of the member account for which you will delete the threat entity list, and other placeholder values that areshown in red
.
-