I want to delete particular folders from SharePoint Document library.
I have done this using C#, Its working fine. But I want to modify the same code to powershell.
i tried below code with powershell. I want to modify this C# to Powershell Code I am having doubt in this line:
string documentLibraryFolderurl= SPContext.Current.Web.Url + "/" + oList + "/" + str + "/" + "Test" + "/" + CategoryName;
if (oWeb.GetFolder(documentLibraryFolderurlAward).Exists == true)
SPFolder folder = oWeb.GetFolder(documentLibraryFolderurlAward);
folder.Delete();
can anyone help me on this?