Removes a property from the connected Search Console account (a change to the account; needs confirm: true).
curl -X POST "https://api.primaryapi.com/v1/run/search-console.delete_site" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"siteUrl":"https://shop.example.org/","confirm":true}'{
"output": {
"found": true,
"data": {
"deleted": true,
"siteUrl": "https://shop.example.org/"
}
},
"credits": 1
}Input and output
3 fields
https://shop.example.org/.true.2 fields
Good to know
Changes your account. This call creates, edits or deletes something in the connected account, live. Confirm before running it. With an Idempotency-Key it never runs twice, and monitors can’t schedule it.
WRITE: changes the connected Search Console account. Cannot be undone by this call.
Needs the Manage Search Console capability and confirm. True.
It removes the property from this Google account’s Search Console list only.
A property that is not in the account is a miss with reason site_not_found. So running it twice is safe.
Unknown site URL? It comes back as not found, not as an error.
The same key and credits work for every API.