The twig_purge in attachment will indeed purge everything before that element, meaning that the record_id, creation_ts, short_desc and delta_ts elements will be purged, but the (now empty) record will be kept. Is this what is causing you problems?
Maybe what you are looking for is just $attach->delete in the attachment handler, then $twig->purge in the record handler. If Scalar::Util is installed, then using delete will release the memory for the attachment (at least so it can be re-used by the Perl process).
In reply to Re^3: broken twig?
by mirod
in thread broken twig?
by gregaryh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |