A cleaning device comprising: a vacuum cleaner including a dust collecting container; and a docking station to which the dust collecting container is connected, wherein the docking station comprises: a sensor (no) configured to detect whether the dust collecting container is connected to the docking station; an input device configured to receive an input from a user; a suction fan configured to generate a suction airflow; a motor configured to rotate the suction fan; a dust bag configured to collect foreign substances that are moved by the suction airflow along a suction flow path, and at least one processor configured to: determine whether the dust collecting container is connected to the docking station based on an output value of the sensor, upon determining that the dust collecting container is connected to the docking station and in the presence of an action command of a user entered through the input device, control the motor to rotate the suction fan for a predetermined operation time, in the event that a stop command is received through the input device, control the motor to remain turned on for a predetermined waiting time and then to be turned off so that the foreign substances remaining in the suction flow path can be collected in the dust bag. a vacuum cleaner including a dust collecting container; and a docking station to which the dust collecting container is connected, wherein the docking station comprises: a sensor (no) configured to detect whether the dust collecting container is connected to the docking station; an input device configured to receive an input from a user; a suction fan configured to generate a suction airflow; a motor configured to rotate the suction fan; a dust bag configured to collect foreign substances that are moved by the suction airflow along a suction flow path, and at least one processor configured to: determine whether the dust collecting container is connected to the docking station based on an output value of the sensor, upon determining that the dust collecting container is connected to the docking station and in the presence of an action command of a user entered through the input device, control the motor to rotate the suction fan for a predetermined operation time, in the event that a stop command is received through the input device, control the motor to remain turned on for a predetermined waiting time and then to be turned off so that the foreign substances remaining in the suction flow path can be collected in the dust bag. a sensor (no) configured to detect whether the dust collecting container is connected to the docking station; an input device configured to receive an input from a user; a suction fan configured to generate a suction airflow; a motor configured to rotate the suction fan; a dust bag configured to collect foreign substances that are moved by the suction airflow along a suction flow path, and at least one processor configured to: determine whether the dust collecting container is connected to the docking station based on an output value of the sensor, upon determining that the dust collecting container is connected to the docking station and in the presence of an action command of a user entered through the input device, control the motor to rotate the suction fan for a predetermined operation time, in the event that a stop command is received through the input device, control the motor to remain turned on for a predetermined waiting time and then to be turned off so that the foreign substances remaining in the suction flow path can be collected in the dust bag. determine whether the dust collecting container is connected to the docking station based on an output value of the sensor, upon determining that the dust collecting container is connected to the docking station and in the presence of an action command of a user entered through the input device, control the motor to rotate the suction fan for a predetermined operation time, in the event that a stop command is received through the input device, control the motor to remain turned on for a predetermined waiting time and then to be turned off so that the foreign substances remaining in the suction flow path can be collected in the dust bag.