<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _cleanlogs(silent=False, log_location="log"):
 """ Cleans up Mbed-test default log directory. :param silent: Defaults to False :param log_location: Location of log files, defaults to "log" :return: Nothing """

    try:
        print("cleaning up Icetea log directory.")
        shutil.rmtree(log_location, ignore_errors=silent,
                      onerror=None if silent else _clean_onerror)
    except OSError as error:
        print(error)