Hot answers tagged


You can use this cmdlet : Get-PnPFile Get-PnPFile -Url fileUrl -AsFile


A caml query will be enough to make the script delete files in a specific folder according to date. $site = new-object Microsoft.SharePoint.SPSite("site url") $web = $site.rootweb $list = $web.Lists["library name"] $query=new-object Microsoft.SharePoint.SPQuery $caml='<Where> <Leq> <FieldRef Name="Created" /> ...

Only top voted, non community-wiki answers of a minimum length are eligible