---
name: vpc-fl-delete
title: Deleting a flow log collector
description: You can delete a flow log collector by using the UI, the CLI, or the API.
last-updated: 2026-06-11
---

> ## Documentation Index
> The table of contents for this documentation set is at https://cloud.ibm.com/docs/vpc?format=markdown
> The index for all IBM Cloud docs is at: https://cloud.ibm.com/docs/llms.txt
> Use these files to discover more information as needed.

# Deleting a flow log collector
{: #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 IBM Cloud&reg; Object Storage yet, are dropped immediately on deletion. If dropping immediately is a problem, you can suspend the collector instead.
* Flow logs that were shipped to your IBM Cloud&reg; Object Storage buckets are not deleted.

## Deleting a flow log collector in the console
{: #fl-deleting-ui}
{: ui}

To delete a flow log collector, click the Actions menu ![Actions menu](../icons/action-menu-icon.svg "Actions") next to the collector that you want to delete, then click **Delete**. Click **Delete** again to confirm the deletion.

## Deleting a flow log collector from the CLI
{: #fl-deleting-cli}
{: cli}

Before you begin, [set up your CLI environment](https://cloud.ibm.com/docs/vpc?topic=vpc-set-up-environment&interface=cli&format=markdown).

To delete a flow log collector by using the CLI, run the following command:

```sh
ibmcloud is flow-log-delete FLOW_LOG [-f, --force]
```
{: pre}

Where:

`FLOW_LOG`
:   ID of the flow log instance.
`--force, -f`
:   Forces the operation without confirmation.


## Deleting a flow log collector with the API
{: #fl-deleting-api}
{: api}

To delete a flow log collector by using the API, follow these steps:

1. Set up your [API environment](https://cloud.ibm.com/docs/vpc?topic=vpc-set-up-environment&format=markdown#api-prerequisites-setup) with the right variables.
1. Store your `FlowLogID01` in a variable to be used in the API command:

   ```sh
   export FlowLogID01="<your_flow_log_id>"
   ```
   {: pre}

1. To delete a flow log collector:

   ```sh
   curl -sS -X DELETE \
   -H "Authorization: Bearer $iam_token" \
   "$vpc_api_endpoint/v1/flow_log_collectors/$FlowLogID01?version=$api_version&generation=2" | jq
   ```
   {: pre}

   The example uses `jq` as a parser, a third-party tool licensed under the [MIT license](https://stedolan.github.io/jq/download/). `jq` might not come preinstalled on all VPC images available when you create an instance. You might need to install `jq` before use or use another parser of your choice.
   {: note}