Relevance: Delete Folder with subfolder

Hi Guys

Been looking for this already a long time, but is it possible to delete a folder with subfolders and textfiles?

I know how to do it with powershell, cmd etc, but I want it with relevance:

delete "C:\Temp\test" 

But that fails if there are subfolders and files in the folder test.

I tried with descendants etc, but without any luck.

Your help will be much appreciated.

Relevance cannot delete anything. It is Read-Only by design.
Action scripting can.

A quick Google search brings up THIS. It should help you find the needed commands.

Hi,

Thanks for your answer.

If C:\Temp\test is empty, then it deletes the folder.

If it’s not empty, then it fails.

And my bad, i meant action scripting, but based on the language of BigFix and not with the help of cmd/dos.

Have you tried FOLDER DELETE?

1 Like

fml… I’ve tried everything from delete folder “…” to delete “…” folder etc, but not FOLDER DELETE :smiley:

that works… thanks a lot man!

Remember that https://developer.bigfix.com is your friend here :smile:

https://developer.bigfix.com/action-script/reference/file/

1 Like