Soft-delete a GA4 account by account id
google-analytics.x.analyticsadmin-accounts-deleteaccounts.delete — Marks target Account as soft-deleted (ie: "trashed") and returns it. This API does not have a method to restore soft-deleted accounts. However, they can be restored using the Trash Can UI. If the accounts are not restored before the expiration time, the account and all child resources (eg: Properties, GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. https://su
- Precio
- freeA precio de catálogo
- Tasa de éxito
- —Aún no hay datos de tasa de éxitoÚltimos 30 días · 0 llamadas
- Latencia p50
- ——
- Última verificación
- —Aún no verificado
DELETEhttps://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-accounts-deleteBeta- Usa la cuota de la plataforma
- Respuesta síncrona
- Lee datos públicos
Parámetros
| Parámetro | Tipo | Obligatorio | Descripción | Ejemplo |
|---|---|---|---|---|
| Parámetros de ruta | ||||
name | cadena | Obligatorio | Required. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100" | |
- Parámetros de ruta
namecadenaObligatorioRequired. The name of the Account to soft-delete. Format: accounts/{account} Example: "accounts/100"
Ejemplos de código
Sustituye $TOOLSWITCH_KEY por la clave que creaste en la consola.
curl -X DELETE 'https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-accounts-delete' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"DELETE",
"https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-accounts-delete",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-analytics.x.analyticsadmin-accounts-delete", {
method: "DELETE",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());La API de la pasarela está en Beta; su URL y autenticación pueden cambiar. Los parámetros del ejemplo son datos de muestra. Las llamadas se facturan a free, incluida la tarifa de servicio.