Updated on 2025-12-23 GMT+08:00

Deleting a VPC Flow Log

Function

This API is used to delete a flow log.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    vpc:flowLogs:delete

    Write

    flowLog *

    • vpc:FlowLogId
    • vpc:FlogLogResourceType

    -

    -

URI

DELETE /v1/{project_id}/fl/flow_logs/{flowlog_id}

Table 1 describes the parameters.

Table 1 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID.

flowlog_id

Yes

String

Flow log ID

Request Parameters

None

Example Request

DELETE https://{Endpoint}/v1/b2782e6708b8475c993e6064bc456bf8/fl/flow_logs/60c809cb-6731-45d0-ace8-3bf5626421a9

Response Parameters

None

Example Response

None

Status Code

See Status Codes.

Error Code

See Error Codes.