Automating taking and deleting of Snapshots