You can delete your instance when you no longer need it. This is referred to as terminating / deleting your instance. As soon as the state of an instance changes to shutting-down or terminated, you stop incurring charges for that instance. More information you can find under the links: Amazon Web Services, Azure Marketplace.