DEV Community

Cover image for Clean up on Microsoft Azure
Oluwanifesimi
Oluwanifesimi

Posted on

Clean up on Microsoft Azure

Microsoft Azure is a cloud platform where you can run virtual computers, store data, build apps, and use AI—without needing physical servers. It's like renting powerful tech tools online to get things done faster and smarter.

step by step on how to clean up in Microsoft Azure
step 1: Remove delete locks
If you attempt to delete a resource with a delete lock, you’ll receive a warning that the operation failed due to a delete lock being in place. To avoid that, it’s important to clear delete locks from resources you intend to delete before issuing the delete command.

  • Login to Microsoft Azure at https://portal.azure.com Login
  • From the Azure portal home page, in the search box, enter virtual machines.
  • Select virtual machines under services. VM
  • Select the guided-project-vm virtual machine. GUIDED VM
  • If necessary, expand the Settings submenu.
  • Select Locks.
  • Select Delete on the line for the VM-delete-lock.

LOCK DELETE

  • On the pop-up window, select Delete to confirm deletion of the lock. Once the delete lock is removed, you’ll be able to delete the VM. While this was the only delete lock required by the exercise, if you applied other delete locks during the exercise, remove them now. When you’re done, select Home to return to the Azure portal home page.

step 2: Delete the project resource group
A key benefit of using resource groups is the ability to rapidly delete all of the resources assigned to a resource group at once.

  • From the Azure portal home page, in the search box, enter Resource groups.
  • Select resource groups under services. RG
  • Select the guided-project-rg resource group. select RG
  • Select Delete resource group. DELETE RG
  • Select Apply force delete…
  • Enter guided-project-rg in the confirmation box.
  • Select Delete. DELETE RG FORCE
  • On the Delete confirmation pop-up, select Delete. POP UP It will approximately 5 minutes before the resource group is fully deleted. You’ll need to refresh the resource group page every few minutes until the guided-project-rg is gone to confirm complete deletion.

Conclusion

Cleaning up your Microsoft Azure environment isn’t just about freeing up space—it’s about maintaining efficiency, reducing costs, and avoiding clutter that can slow down your workflow. By removing delete locks and properly deleting resource groups, you ensure that your cloud setup stays lean and manageable.

Whether you're wrapping up a guided project or just tidying up after testing, these steps help you stay in control of your resources. Azure gives you the power—now it's up to you to keep it clean.

Happy building, and even happier cleaning!

Top comments (1)

Collapse
 
realcloudprojects profile image
SKILL.SCH

Welldone!