Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Confused about how to delete just the items in a folder on C Drive

$
0
0

I'm a newbie with the powershell coding I'm trying to write a small powershell script to delete items that are in a folder on the C drive ..  C:\temp 

As I have another set of code that place the documents in that folder and then move it to another application, once moved then I want to delete the files...

I have

Remove-Item -Path C:\Temp

it throws an error when I run the PS ISE for testing.  I only want the items in the folder delete. So I'm guess that would mean Child-items???


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>