From owner-freebsd-questions@FreeBSD.ORG Wed Feb 10 14:03:12 2010 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 032A7106568B for ; Wed, 10 Feb 2010 14:03:12 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from smtp.mel.people.net.au (smtp.mel.people.net.au [218.214.17.98]) by mx1.freebsd.org (Postfix) with SMTP id 381748FC2A for ; Wed, 10 Feb 2010 14:03:10 +0000 (UTC) Received: (qmail 28310 invoked from network); 10 Feb 2010 14:01:20 -0000 Received: from unknown (HELO smtp.phoenix) (218.215.187.147) by smtp.mel.people.net.au with SMTP; 10 Feb 2010 14:01:20 -0000 Received: by smtp.phoenix (Postfix, from userid 1001) id C74AF170AA; Thu, 11 Feb 2010 01:03:07 +1100 (EST) Date: Thu, 11 Feb 2010 01:03:07 +1100 From: andrew clarke To: Alexander Best Message-ID: <20100210140307.GA38085@ozzmosis.com> References: <20100210031456.GA80933@eggman.experts-exchange.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@FreeBSD.org Subject: Re: problem with `find -delete` X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Feb 2010 14:03:12 -0000 On Wed 2010-02-10 14:24:34 UTC+0100, Alexander Best (alexbestms@wwu.de) wrote: > thanks goes to jilles on #freebsd-bugbuster. he told me that -delete doesn't > delete directories recursively. > > so what i'm bow using is > > sudo /usr/bin/find /usr/ports -name work -depth 3 -type d -exec rm -rf {} + AFAIK another method is: sudo rm -rf /usr/ports/*/*/work