Ok so I have a patch that looks like below, it does a good job of deleting 2 day and older logs but however it just leaves the folder itself. I tried adding the section above which is bolded but it does not work. Any idea how to get rid of the dynamically generated folder. They have names like (log/RD0003FFA1230E and logs/RD0003FFA12729), but my script does delete all the logs inside those just not these folders.
<scheduling>
<agent type="Sitecore.Tasks.CleanupAgent">
<files hint="raw:AddCommand">
**<remove folder="$(dataFolder)/logs" pattern="*.*" maxAge="2.00:00:00"/>**
<remove folder="$(dataFolder)/logs">
<patch:attribute name="pattern">*log.*.tx*</patch:attribute>
<patch:attribute name="maxAge">2.00:00:00</patch:attribute>
<patch:attribute name="recursive">true</patch:attribute>
</remove>