A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. You can use the below command to delete the deployment.
$ az group deployment delete --name name --resource-group name
Hope it helps!
To know more, join our Azure Training in Indonesia today.