Method: properties.dataStreams.delete

  • Deletes a specified DataStream associated with a Google Analytics 4 property.

  • Requires providing the DataStream name in the URL path using the format: properties/{property_id}/dataStreams/{stream_id}.

  • Uses an HTTP DELETE request with an empty body and returns an empty response upon successful deletion.

  • Needs authorization with the https://www.googleapis.com/auth/analytics.edit scope.

Deletes a DataStream on a property.

HTTP request

DELETE https://analyticsadmin.googleapis.com/v1alpha/{name=properties/*/dataStreams/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the DataStream to delete. Example format: properties/1234/dataStreams/5678

Request body

The request body must be empty.

Response body

If successful, the response body is an empty JSON object.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/analytics.edit