# `Chatto.Auth.V1.PushSubscriptionCleanupService`
[🔗](https://github.com/xtian/elixir-chatto/blob/v0.1.0/lib/chatto/generated/chatto_auth_v1_push_subscription_cleanup_service.ex#L3)

Public capability-authenticated cleanup for browser push subscriptions.

# `delete_subscription`

```elixir
@spec delete_subscription(
  Req.Request.t(),
  Chatto.Auth.V1.DeleteSubscriptionRequest.t()
) ::
  {:ok, Chatto.Auth.V1.DeleteSubscriptionResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Removes the exact current subscription when its Push API auth secret and
per-save cleanup token match. This public RPC requires those capabilities,
not an authenticated account session, and does not reveal whether a match
existed.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
