import plivoclient = plivo.RestClient(auth_id="<auth_id>", auth_token="<auth_token>")# Unlink a short code from Powerpackpowerpack = client.powerpacks.get(uuid='<powerpack_uuid>')# Version 1response = powerpack.remove_shortcode('<shortcode>')# Version 2response = powerpack.numberpool.shortcodes.remove('<shortcode>')print(response)
Remove a short code
Unlink a short code from a Powerpack number pool
Removes the short code from the specified number pool resource. Note that the short code isn’t unrented, it’s only unlinked from the number pool.
This API call removes the short code from the number pool resource identified by the shortcode and number_pool_uuid specified in the request URL.
Copy
Ask AI
import plivoclient = plivo.RestClient(auth_id="<auth_id>", auth_token="<auth_token>")# Unlink a short code from Powerpackpowerpack = client.powerpacks.get(uuid='<powerpack_uuid>')# Version 1response = powerpack.remove_shortcode('<shortcode>')# Version 2response = powerpack.numberpool.shortcodes.remove('<shortcode>')print(response)