Deleting Files!

First of all - please format your code as code. There are charachters missing.
Here you can read how that works: Guide to Posting Code.

Now - your question:
You create the variable $Daysback with exact date and time of NOW (the moment you run this script). It is pretty much impossible that you have a folder with the exact LastWriteTime from NOW. :wink:
The next thing - if your folder is not empty you will have to add the paramter -Recurse to Remove-Item. Otherwise you will be prompted for confirmation.