In Azure, the temporary disk that is created with a virtual machine (VM) is not designed to be deleted. It is a local disk that provides short-term storage for applications and processes, and its data may be lost during maintenance events or if the VM is moved to a different host. The temporary disk is intended for transient data such as page files or swap files.
Since the temporary disk is not a managed disk and is tied to the VM's lifecycle, you cannot delete it independently. If you do not want to use the temporary disk, you can simply avoid storing any data on it. However, it will still be present as part of the VM configuration.
If you need to manage storage more effectively, consider using managed data disks for your applications and data instead, as they offer more flexibility and control over deletion and management.
References: