@DEEPAK GULATI Welcome to Microsoft Q&A Forum, Thank you for posting query here!
Firstly you need to to detach the Disk through portal,Powershell or SDK -> then you can delete disk using REST API . Presently there is No API for detaching the disk
PS for Detaching the disk
$VirtualMachine = Get-AzVM `
-ResourceGroupName "<RG>" `
-Name "teststoragedisk"
Remove-AzVMDataDisk `
-VM $VirtualMachine `
-Name "removeusingPS"
Update-AzVM `
-ResourceGroupName "<RG>" `
-VM $VirtualMachine
If you wish you may leave your feedback here, All the feedback you share in these forums. will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
Please let us know if you have any further queries. I’m happy to assist you further.
----------
Please do not forget to
and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.