Added the Delete() method to delete resources.