Can't remove TXT records with mass_edit_zone API

swbrains

Well-Known Member
Sep 13, 2006
306
45
178
After migrating to a new server, I am using a script that previously worked to call mass_edit_zone to remove multiple TXT records from a host's DNS. Now I get the following message, however:

Line 59 contains a record of type 'TXT'. You cannot edit or remove 'TXT' records. You can only edit or remove A, CNAME, and MX records."

Has this API coincidentally changed or am I missing something? It seems the function can add TXT records according to the docs. Should I be using a different function to bulk remove several TXT record lines at once now?

Thanks!
 

swbrains

Well-Known Member
Sep 13, 2006
306
45
178
Apparently, in Feature Manager there are two different settings in the default feature set that allow API calls to modify different sets of DNS records. I hadn't checked "Zone Editor (AAAA, CAA, DMARC, SRV, TXT)", so it wouldn't allow it, but I did have it checked on the old server. I'll leave this message here for future searches to see. :)
 
Last edited:
  • Like
Reactions: cPRex