copyright | lastupdated | keywords | subcollection | ||
---|---|---|---|---|---|
|
2020-07-23 |
flow logs, delete |
vpc |
{:shortdesc: .shortdesc} {:new_window: target="_blank"} {:codeblock: .codeblock} {:pre: .pre} {:screen: .screen} {:term: .term} {:tip: .tip} {:note: .note} {:important: .important} {:deprecated: .deprecated} {:external: target="blank" .external} {:generic: data-hd-programlang="generic"} {:download: .download} {:DomainName: data-hd-keyref="DomainName"}
{: #deleting-a-flow-log-collector}
You can delete a flow log collector by using the UI, the CLI, or the API.
Notes:
- Any logs that were collected, but weren't sent to Cloud Object Storage (COS) yet, are dropped immediately on deletion. If this is a problem, you can suspend the collector instead.
- Flow logs that were already shipped to your COS buckets are not deleted.
{: #fl-deleting-ui}
To delete a flow log collector, click the overflow menu next to the collector that you want to delete, then click Delete. Click Delete again to confirm the deletion.
{: #fl-deleting-cli}
To delete a flow log collector by using the CLI, run the following command:
ibmcloud is flow-log-delete FLOW_LOG [-f, --force]
Where:
- FLOW_LOG is the ID of the flow log instance.
- --force, -f forces the operation without confirmation.
{: #fl-deleting-api}
To delete a flow log collector by using the API, follow these steps:
-
Set up your API environment with the right variables.
-
Store your
FlowLogID01
in a variable to be used in the command. For example:export FlowLogID01="<your_flow_log_id>"
{:pre}
-
To delete a flow log collector:
curl -sS -X DELETE \ -H "Authorization: $iam_token" \ "$vpc_api_endpoint/v1/flow_log_collectors/$FlowLogID01?version=$api_version&generation=2" | jq
{:pre}