Remove an APNs device token
DELETE https://lexicogenesis.zulipchat.com/api/v1/users/me/apns_device_token
This endpoint removes an APNs device token for iOS push notifications.
Changes: Deprecated in Zulip 11.0 (feature level 406) and will be
removed in a future release. Clients connecting to newer servers and
with E2EE push notifications support should delete the account record
in their local accounts table that corresponds to the push_account_id
supplied when registering via the Register E2EE push device
endpoint, to stop displaying notifications for that registration.
Usage examples
#!/usr/bin/env python3
import zulip
# Pass the path to your zuliprc file here.
client = zulip.Client(config_file="~/zuliprc")
request = {
    "token": "c0ffee",
}
result = client.call_endpoint(
    url="/users/me/apns_device_token", method="DELETE", request=request
)
print(result)
 
curl -sSX DELETE https://lexicogenesis.zulipchat.com/api/v1/users/me/apns_device_token \
    -u BOT_EMAIL_ADDRESS:BOT_API_KEY \
    --data-urlencode token=c0ffee
 
 
 
Parameters
    token string required  
    
        Example: "c0ffee"
    
    The token provided by the device.
 
Response
Example response(s)
Changes: As of Zulip 7.0 (feature level 167), if any
parameters sent in the request are not supported by this
endpoint, a successful JSON response will include an
ignored_parameters_unsupported array.
A typical successful JSON response may look like:
{
    "msg": "",
    "result": "success"
}
A typical failed JSON response for when the token's length is invalid
or it is empty:
{
    "code": "BAD_REQUEST",
    "msg": "Empty or invalid length token",
    "result": "error"
}
A typical failed JSON response for when the token does not exist:
{
    "code": "BAD_REQUEST",
    "msg": "Token does not exist",
    "result": "error"
}