Are you referring to the records in the DNS zones? If so, and if you are okay with replacing the proxy subdomain records (e.g. cpanel, whm, webmail) for all accounts on the system with the default entries, then you could use the following script:

Code:

# /scripts/proxydomains --help
Usage:
proxydomains [action] [options]
Options:
--help Brief help message
--man Full help message
--user= User to configure
--domain= Domain to configure
--subdomain= Proxy subdomain to manipulate
--no_replace=0 Enable replacment of existing records (currently
only used for changing autodiscover hosts)
--old_autodiscover_host= The previously configured autodiscover host (used
for matching old records and updating them to the
new host)
--force_autodiscover_support=1 Behave as if the autodiscover support has not been
disabled even if it has. This is useful for
removing the autodiscovery proxy subdomains after
the support for them has been disabled.
--ifenabled Only perform the operation if proxy subdomains
are enabled.
Actions:
add Create proxy subdomains
remove Remove proxy subdomains