remove the hardware directory