Hello Tamil Selvan M,
Greetings! Welcome to Microsoft Q&A Forum.
Adding to above information, there are certain prerequisites you need to check before deleting a Storage Account.
As you mentioned you would like to clean the logs, check if there are any retention policies in place for your logs. Retention policies determine how long logs are retained before they are automatically deleted and ensure that you’re not violating any compliance requirements by deleting.
If version-level immutability support is enabled for the storage account and the account contains one or more containers, then you must delete all containers before you delete the storage account, even if there are no immutability policies in effect for the account or containers.
Now, HERE are steps to Modify or delete an unlocked retention policy. If there are any legal holds on the data, here are steps to clear the same as well.
Ensure you have backed up all critical data stored in the account. This includes databases, virtual machines, and any other files. Use Azure’s backup services or manually export data to a secure location.
Check if any scheduled tasks or processes relying on the storage account are disabled before deletion.
If using classic VMs, delete them first. When deleting a classic VM, ensure that the “Disks” checkbox is selected. Breaking the disk lease associated with the page blob .vhd allows you to delete the actual page blob file from the storage account.
Remove associated disks: Classic VMs retain a lease on the .vhd file until their associated disks are deleted. Once the disk lease is broken, you can delete the page blob itself. A storage account or container can be deleted once all “Disk” resources within them are deleted.
Hope this answer helps!