How can I delete a directory with SaltStack, if it is empty?
First I remove a file in this directory, and then I would like to delete the directory. But if there is one or several files in the directory, then the directory should not be removed.
I checked the docs of file.absent but found no solution.