toggle switch for automatic deletion