app installer perl script - how to delete installation folder?

  • if I install a joomla package via the perlscript I would like to delete the complete installation folder from the installer script.
    which function or command can I use here?

    Code
    1. doSQL($sql);
    2. ...
    3. ## Don't remove this line below ##
    4. imscp_installer_package_end();
    5. ##################################