<?php
/*
This script enables you to wipe out a directory.
As the name implies, deltree, it will take all
files and subdirectories with it. Be careful!
Use the $parentdir for safety.
In this example you can't delete stuff anywhere
but off of the sale_pics directory.
==============================================================
This script is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS  FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
This  file and the whole Deltree distribution is copyright (c)
2001 Pierre Marceau all rights reserved.  You may  freely  use
and  redistribute  under the  terms of the  GNU General Public
License.
--------------------------------------------------------------
        Deltree - http://www.skynet.ca/~pierre/
==============================================================
*/
include "deltree.inc.php";
$mytree = new deltree;
$mytree->parentdir="/home/rauctns.com/www/sale_pics";
$mytree->ftp_user="pierre";
$mytree->ftp_pass="finland";
//  This will remove the directory
//  /home/rauctns.com/www/sale_pics/oldcars
//  and all it's files and subdirectories.
$mytree->prune("oldcars");
?> 
  |