docstr: Removing the bundle data from the catalyst folder.
  
  Parameters
  ----------
  data_frequency: str
docstr_tok: ["Removing","the","bundle","data","from","the","catalyst","folder",".","Parameters","--","--","--","--","--","data_frequency",":","str"]
code: def clean(self, data_frequency):
      """
      Removing the bundle data from the catalyst folder.
  
      Parameters
      ----------
      data_frequency: str
  
      """
      log.debug(
          "cleaning exchange {}, frequency {}".format(
              self.exchange_name, data_frequency
          )
      )
      root = get_exchange_folder(self.exchange_name)
  
      symbols = os.path.join(root, "symbols.json")
      if os.path.isfile(symbols):
          os.remove(symbols)
  
      local_symbols = os.path.join(root, "symbols_local.json")
      if os.path.isfile(local_symbols):
          os.remove(local_symbols)
  
      temp_bundles = os.path.join(root, "temp_bundles")
  
      if os.path.isdir(temp_bundles):
          log.debug(
              "removing folder and content: {}".format(temp_bundles)
          )
          shutil.rmtree(temp_bundles)
          log.debug("{} removed".format(temp_bundles))
  
      frequencies = (
          ["daily", "minute"]
          if data_frequency is None
          else [data_frequency]
      )
  
      for frequency in frequencies:
          label = "{}_bundle".format(frequency)
          frequency_bundle = os.path.join(root, label)
  
          if os.path.isdir(frequency_bundle):
              log.debug(
                  "removing folder and content: {}".format(
                      frequency_bundle
                  )
              )
              shutil.rmtree(frequency_bundle)
              log.debug("{} removed".format(frequency_bundle))
  
imports: import os
  import shutil
  from datetime import timedelta
  from functools import partial
  from itertools import chain
  from operator import is_not
  import numpy
  import pandas
  import pytz
  from catalyst import get_calendar
  from catalyst.assets._assets import TradingPair
  from catalyst.constants import DATE_TIME_FORMAT, AUTO_INGEST
  from catalyst.constants import LOG_LEVEL
  from catalyst.data.minute_bars import BcolzMinuteOverlappingData, BcolzMinuteBarMetadata
  from catalyst.exchange.exchange_bcolz import BcolzExchangeBarReader, BcolzExchangeBarWriter
  from catalyst.exchange.exchange_errors import EmptyValuesInBundleError, TempBundleNotFoundError, NoDataAvailableOnExchange, PricingDataNotLoadedError, DataCorruptionError, PricingDataValueError
  from catalyst.exchange.utils.bundle_utils import range_in_bundle, get_bcolz_chunk, get_df_from_arrays, get_assets
  from catalyst.exchange.utils.datetime_utils import get_start_dt, get_period_label, get_month_start_end, get_year_start_end
  from catalyst.exchange.utils.exchange_utils import get_exchange_folder, save_exchange_symbols, mixin_market_params, get_catalyst_symbol
  from catalyst.utils.cli import maybe_show_progress
  from catalyst.utils.paths import ensure_directory
  from logbook import Logger
  from pytz import UTC
  from six import itervalues
label_desc: Use image node_id 20 for calling the ExchangeBundle obj's underlying member method code with example usage: obj.clean(data_frequency) without return types