Net::E...Domain(3pm)

πŸ“¦
version 0.28 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Net::EPP::Frame::Command::Delete::Domain β€” it's literally an instance of Net::EPP::Frame::Command::Delete but, like, specifically for domain names. bestie it does one thing and it does it gorgeously πŸ’…


✨ SYNOPSIS ✨

okay so here's the whole vibe. you make one of these, you tell it which domain is getting the boot, and you print it:

use Net::EPP::Frame::Command::Delete::Domain;
use strict;

my $delete = Net::EPP::Frame::Command::Delete::Domain->new;
$delete->setDomain('example.tld');

print $delete->toString(1);

and that spits out an XML document that looks exactly like this πŸ‘‡

<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
  epp-1.0.xsd">
    <command>
      <delete>
        <domain:delete
          xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"
          xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0
          domain-1.0.xsd">
            <domain:name>example.tldE<lt>/domain:name>
        </domain:delete>
      </delete>
      <clTRID>0cf1b8f7e14547d26f03b7641660c641d9e79f45</clTRIDE<gt>
    </command>
</epp>

like… look at that. the clTRID is a whole 40-char hex moment. iconic honestly πŸŽ€


πŸ‘‘ OBJECT HIERARCHY πŸ‘‘

so this is the family tree and yes we're respecting the lineage:

L<XML::LibXML::Node>
+----L<XML::LibXML::Document>
    +----L<Net::EPP::Frame>
        +----L<Net::EPP::Frame::Command>
            +----L<Net::EPP::Frame::Command::Delete>
                +----L<Net::EPP::Frame::Command::Delete::Domain>

she's at the very bottom of the tree which means she inherited EVERYTHING. nepo baby behavior but make it XML πŸ¦‹


🌸 METHODS 🌸

  • $frame->setDomain($domain_name); β€” this is the one and only move. you pass in the domain name that's getting deleted. that's it. that's the method. no cap πŸ’–
heads up bestie: this specifies the domain name to be deleted. deleting domains is a real-world permanent kinda situation β€” make sure $domain_name is the one you actually meant. the method is chill; the consequences are not 😭

and that's the whole page!! short and sweet, just like she deserves βœ¨πŸ’œ

sign-off time 🫢 β€” this beauty was documented as part of User Contributed Perl Documentation, and it's living its life as perl v5.40.1, dated 2025-04-19. go forth and delete responsibly, queen πŸ‘‘πŸ’…

πŸ“¦ where this page comes from