All Products
Search
Document Center

Virtual Private Cloud:DeleteFlowLog

Last Updated:Aug 28, 2026

Deletes a flow log.

Operation description

  • DeleteFlowLog is an asynchronous operation. After you send a request, the system returns a request ID but the flow log is not yet deleted. Call DescribeFlowLogs to check the deletion status:

    • If the flow log is in the Deleting state, deletion is in progress.

    • If the flow log is no longer returned, deletion is complete.

  • Do not call DeleteFlowLog repeatedly within a short period of time.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID of the flow log. Call DescribeRegions to query available regions.

cn-qingdao

FlowLogId

string

Yes

The ID of the flow log.

fl-m5e8vhz2t21sel1nq****

Response elements

Element

Type

Description

Example

object

Success

string

Whether the operation succeeded. Valid values:

  • true: yes

  • false: no

true

RequestId

string

The ID of the request.

F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1

Examples

Success response

JSON format

{
  "Success": "true",
  "RequestId": "F7DDDC17-FA06-4AC2-8F35-59D2470FCFC1"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidInstanceId Instance does not exist. The specified instance does not exist.
400 ProjectOrLogstoreNotExist The specified project or logstore does not exist. The specified project or Logstore does not exist.
400 SourceProjectNotExist The Source Project or logstore does not exist. The source project or Logstore does not exist.
400 Unauthorized This api does not support sub user or role. This operation does not support RAM users.
400 ParameterInvalid Invalid parameter. A parameter is invalid.
400 InvalidStatus The specfied instance's status is invalid.
400 InvalidHdMonitorStatus Current instance status is not valid for this action.
400 FlowLogNumberOverLimit This user has reached the maximum instance number of flowlog.
400 InvalidRegionId.NotFound The RegionId provided does not exist in our records.
400 InvalidInstanceId.NotFound The specfied instance is not existed.
400 IncorrectStatus.flowlog Invalid flowlog status. The flow log cannot be disabled because it is in an invalid state.
400 InvalidResourceId.NotFound Resource id is empty.
400 Forbidden.OperateManagedFlowLog Authentication is failed for operate managed flowlog. Authentication failed when operating the managed flow log.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.