unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Christian Lynbech <christian.lynbech@ericsson.com>
Subject: Re: How delete a not empty directory in the Dired buffer?
Date: Thu, 23 Sep 2004 10:47:23 +0200	[thread overview]
Message-ID: <ofy8j1bcdg.fsf@situla.ted.dk.eu.ericsson.se> (raw)
In-Reply-To: cittj2$fj1$1@lacerta.tiscalinet.it

>>>>> "Giannandrea" == Giannandrea Castaldi <g.castal@tiscali.it> writes:

Giannandrea> ... is a way in the Dired buffer to delete not empty dir?

The simplest is to use `!' which allows you to execute a command on
the file/directory which is pointed out by the cursor. That command
could be "rm -rf" which will remove the directory and all of its
contents.

In other words, you would place the cursor on the line with the
directory you want to delete and the press:

        ! rm -rf <return>

Beware though that "rm -rf" is not a very safe command so be sure you
are pointing to the correct file or directory!


------------------------+-----------------------------------------------------
Christian Lynbech       | christian #\@ defun #\. dk
------------------------+-----------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
                                        - petonic@hal.com (Michael A. Petonic)

      parent reply	other threads:[~2004-09-23  8:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-23  7:21 How delete a not empty directory in the Dired buffer? Giannandrea Castaldi
2004-09-23  8:39 ` zrr
2004-10-01 16:52   ` Daniel L Elliott
2004-10-01 17:24     ` zrr
2004-10-01 17:35     ` J. David Boyd
2004-09-23  8:47 ` Christian Lynbech [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ofy8j1bcdg.fsf@situla.ted.dk.eu.ericsson.se \
    --to=christian.lynbech@ericsson.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).