help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How delete a not empty directory in the Dired buffer?


From: Christian Lynbech
Subject: Re: How delete a not empty directory in the Dired buffer?
Date: Thu, 23 Sep 2004 10:47:23 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

>>>>> "Giannandrea" == Giannandrea Castaldi <address@hidden> 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.
                                        - address@hidden (Michael A. Petonic)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]