Using this script we could delete Azure Diagnoctic Extension from VMs.

Why we need to delete:- 

Some of the extension has not configured properly with memory and other parameters. So i have to delete them and need to push new ones.

Could also see this this project on GitHub.

https://github.com/unpredictablegourav/IaaS-Diagnostic/blob/master/Extension_Deletion.ps1