Powershell script to delete computer records from SCCM

Recently I had a requirement to create a PowerShell script to read text file/CSV for list of clients (servers mainly) and check if they appear in SCCM if so delete them ,track the information into log file for reference. There could be various reasons why do you want to delete computer record from SCCM and…