Forum: Cfengine Help
Subject: Re: Unable to delete a directory
Author: berntjernberg
Link to topic: https://cfengine.com/forum/read.php?3,18863,19654#msg-19654
Hi,
I got it working in 3.05p1 with:
bundle agent cleanup(dir)
{
files:
# Delete all files.
"
Forum: Cfengine Help
Subject: Re: Unable to delete a directory
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,18863,18866#msg-18866
IIRC there are some body parts that will instruct the agent to delete the
parent directory.
http://www.cfengine.org/manuals/cf3
Yes, it is a bug which has since been fixed. I'd recommend upgrading to a
newer version of Cfengine (and 3.1.0 will be coming out soon, too!)
-Dan
On Oct 25, 2010, at 2:06 PM, Jean-Noël Rivasseau wrote:
> Hello,
>
> I want to delete a directory and all its content, I am running cfengine 3.0.3
Hello,
I want to delete a directory and all its content, I am running cfengine
3.0.3 and the exact example of the manual does *not* work:
bundle agent cleanup
{
files:
# This will not delete the parent
"/home/mark/tmp/testcopy"
delete => tidyfiles,