>From: fedora-list-bounces@xxxxxxxxxx >[mailto:fedora-list-bounces@xxxxxxxxxx]On Behalf Of Chasecreek >Systemhouse >Sent: Tuesday, December 20, 2005 10:06 AM >To: For users of Fedora Core releases >Subject: Re: rmdir when directory is not empty > > >On 12/20/05, kebbelj@xxxxxxxxxxxxxxxxxxxxxxx ><kebbelj@xxxxxxxxxxxxxxxxxxxxxxx> wrote: >> In the GUI, I can trash a non-empty directory with a >right-click and Move to Trash. What command line option would >I use with rmdir to remove a non-empty directory? > > >The best way to nuke a directory is - > ># Delete the files. >su - -c "find /path/to/dirName -type f -exec rm -f {} \;" > ># Delete the directory paths. >su - -c "rmdir -p /path/to/dirName" OR rm -fr /dir/dir-delete-me > >HTH/Bill >-- >WC -Sx- Jones | http://ccsh.us/ | Open Source Consulting > >-- >fedora-list mailing list >fedora-list@xxxxxxxxxx >To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. >Version: 7.1.371 / Virus Database: 267.14.1/207 - Release >Date: 12/19/2005 > > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.371 / Virus Database: 267.14.1/207 - Release Date: 12/19/2005