Remove user
Remove a user from a property. Owners only.
DELETE https://cotlet.dev/api/v1/google-search-console/users
write Confirm
Removes a user in Settings > Users and permissions; the person loses access to the property at once. A delegated owner can be removed here, but a verified owner has to be removed by removing their verification token from the site, so the call reports it instead. You must be an owner of the property, or of its parent property. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| property string required | string | Property as Search Console lists it: sc-domain:example.com for a Domain property, https://example.com/ for a URL-prefix property. |
| email string required | string | Email of the user to remove, as shown by list_users. |
Request
curl -X DELETE "https://cotlet.dev/api/v1/google-search-console/users?property=property&email=jane%40example.com" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("google-search-console", "remove_user", {"property":"property","email":"jane@example.com"}) const result = await cotlet.call('google-search-console', 'remove_user', {"property":"property","email":"jane@example.com"}); cotlet call google-search-console remove_user --data '{"property":"property","email":"jane@example.com"}' Example response
{
"property": "sc-domain:example.com",
"email": "jane@oldagency.example",
"status": "removed",
"non_owner_users": 8
}