There isn&#39;t really a complete undo, no.  You can run a query of all nodes of your type and call node_delete() on each of them in turn, though.  That will clear up the fields and I believe even the images.<br><br><div class="gmail_quote">
On Wed, Jan 26, 2011 at 2:48 PM,  <span dir="ltr">&lt;<a href="mailto:jeff@ayendesigns.com">jeff@ayendesigns.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


  

    
  
  <div style="direction: ltr;" text="#000000" bgcolor="#ffffff">
    <p style="margin-bottom: 0cm; margin-top: 0pt;">I have my module
      -install- working fine...creating the needed vocabulary, cck
      content type with fields, adding the content type to the
      vocabulary. Now I&#39;m working on the uninstall, and the seemingly
      infinite cleanup that&#39;s needed, not that anyone would ever want to
      remove my module, once installed!</p>
    <p style="margin-bottom: 0cm; margin-top: 0pt;"><br>
    </p>
    <p style="margin-bottom: 0cm; margin-top: 0pt;">I believe I have the
      vocabulary and its data, and the cck content type and its data
      accounted for with:</p>
    <p style="margin-bottom: 0cm; margin-top: 0pt;"><br>
    </p>
    <p style="margin-bottom: 0cm; margin-top: 0pt;"></p>
      taxonomy_del_vocabulary($vid);
    <p style="margin-bottom: 0cm; margin-top: 0pt;"> 
      drupal_load(&#39;module&#39;, &#39;content&#39;);<br>
        content_notify(&#39;uninstall&#39;, &#39;my_module&#39;);</p>
    <p style="margin-bottom: 0cm; margin-top: 0pt;"><br>
    </p>
    <p style="margin-bottom: 0cm; margin-top: 0pt;">and that brings me
      to nodes et al. There will be nodes (and node revisions) to be
      removed, and each node can have multiple field instances (cck
      image field). I don&#39;t seem to see a magic function that, given a
      node type, will remove all associated node data for that type.
      Also, I think I should remove the files that were uploaded as cck
      image content. Any tips on a good example of a complete &quot;undo&quot;? :)<br>
    </p>
    <p style="margin-bottom: 0cm; margin-top: 0pt;"></p>
    <p style="margin-bottom: 0cm; margin-top: 0pt;"></p>
    <p style="margin-bottom: 0cm; margin-top: 0pt;"></p>
    <p style="margin-bottom: 0cm; margin-top: 0pt;"></p>
    <div>-- <br>
      <p style="margin-bottom: 0in;"><img src="https://mail.google.com/mail/?ui=2&amp;ik=47134a3c7c&amp;view=att&amp;th=12dc44cc77334314&amp;attid=0.1.1&amp;disp=emb&amp;zw" name="ayenlogo" valign="top" vspace="30" align="LEFT" border="0">
        <font style="font-size: 8pt;" size="1">Ayen Designs </font><font face="Times New Roman, serif"><font style="font-size: 8pt;" size="1">
            <br>
            388 Bullsboro Drive #105 · Newnan, Georgia 30263</font></font>
        <br>
        <font face="Times New Roman, serif"><font style="font-size: 8pt;" size="1">
            404-271-9734<br>
            Web:<a href="http://ayendesigns.com" target="_blank">ayendesigns.com</a><br>
            Blog: <a href="http://theaccidentalcoder.com" target="_blank">theAccidentalCoder.com</a><br>
            Drupal: <a href="http://drupal.org/user/367108" target="_blank">j. ayen
              green</a><br>
            IRQ: j_ayen_green<br>
            IM (Yahoo) baalwww    (MSN) <a href="mailto:baalwww@yahoo.com" target="_blank">baalwww@yahoo.com</a><br>
            Skype: ayendesigns
            <br>
            <br>
            Ayen Designs is a tradename of the computer services
            division of <img src="https://mail.google.com/mail/?ui=2&amp;ik=47134a3c7c&amp;view=att&amp;th=12dc44cc77334314&amp;attid=0.1.2&amp;disp=emb&amp;zw" name="acmelogo" align="absmiddle"></font></font></p>
    </div>
  </div>

</blockquote></div><br><br clear="all"><br>-- <br>John Fiala<br><a href="http://www.jcfiala.net">www.jcfiala.net</a><br><br>