title: How can i idelete sheet in excel file using powershell?
body: <p>This is my code, below:</p>
  
  <pre><code># Specify the path to the Excel file and the WorkSheet Name
  $FilePath = "C:\Downloads\Portalroom_CW30.xlsx"
  $SheetName = "4_docexchange"
  # Create an Object Excel.Application using Com interface
  $objExcel = New-Object -ComObject Excel.Application
  # Disable the 'visible' property so the document won't open in excel
  $objExcel.Visible = $false
  # Open the Excel file and save it in $WorkBook
  $WorkBook = $objExcel.Workbooks.Open($FilePath)
  # Load the WorkSheet 'BuildSpecs'
  $WorkSheet = $WorkBook.sheets.item($SheetName)
  $WorkBook.close($true)
  $objExcel.Quit()
  </code></pre>
  
  <p>Please help me resolv, Thanks !!</p>