title: How to remove OneDrive folder using PowerShell
body: <p>I'm trying to remove a user OneDrive folder using PowerShell but I'm not seeing any sucess even though I've been searching around internet so I would be really appreciated if I can get any help or suggestion.</p>
  <p>so Just for testing purpose, I'm trying to delete my a folder in my own OneDrive called &quot;Testing&quot; and I wanted to delete everything in there including subfolders and files.</p>
  <pre><code>    Connect-SPOService -Url https://company-admin.sharepoint.com  
   
      $OneDriveURLs = Get-SPOSite -IncludePersonalSite $true -Limit All -Filter &quot;Url -like '-my.sharepoint.com/personal/'&quot;
   
      foreach($OneDriveURL in $OneDriveURLs)
   
      {
   
      Connect-SPOService -Url https://company-admin.sharepoint.com 
   
      Connect-PnPOnline -Url $OneDriveURLs
      Remove-PnPFolder -Name &quot;Google Drive&quot; -Folder &quot;Testing&quot;
   
      }
  </code></pre>