Skip to main content

Delete Prefix

This request deletes a prefix, targeted by secure ID.

delete /phonenumber/prefixes/{prefix_sid}

Sample

A sample DELETE request to delete the prefix, targeted by secure ID:

curl -X DELETE \
'https://api.carrierx.com/core/v2/phonenumber/prefixes/cc367acb-94c8-418f-b247-85dce5806ef4' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'

Response

204 status code with an empty body.

Required Scopes

To delete a Prefix object, the partner must have one of the following scopes enabled:

  • phonenumber.manage
  • phonenumber.delete

Path Arguments

ParameterData TypeDescription
prefix_sid requiredstringThe secure ID of the prefix that is to be deleted.