<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_hwpack(name):
 """remove hardware package. :param name: hardware package name (e.g. 'Sanguino') :rtype: None """

    targ_dlib = hwpack_dir() / name
    log.debug('remove %s', targ_dlib)
    targ_dlib.rmtree()