Forum: Cfengine Help
Subject: Re: Cfengine Help: Deleting a Local File
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,22450,22492#msg-22492

Please try to keep your code to small self contained examples so that we can 
quickly look at it for you.

bundle agent deleteLocalFolder
{
files:
"/tmp/test/create_folder1/create_fo.*"
comment => "delete local folders",
include_basedir => "true",
# include_dirs => { "/tmp/test/create_folder1/create_folde.*" },
depth_search => recurse("inf"),
file_select => specifyFile("/tmp/test/create_folder1/create_fo.*"),
delete => tidy;
}

Why do you have a file_select body if you want to rm -fr 
/tmp/test/create_folder1/create_fo.*  ?

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to