A portable device (2) for providing a vacuum for medical vacuum treatment of wounds has a suction pump (90), which generates a vacuum and is located in a housing part (4) of the device as well as a container (10) for receiving body fluids. A programmable electronic control device (100) can drive the suction pump (90), taking into consideration predetermined parameters. A sensor device (120) is provided by means of which the electronic control device (100) can detect when the container (10) is removed from the housing part (4) during vacuum regulation operation, wherein the sensor device (120) emits a signal, on the basis of which the electronic control device (100) detects removal of the container (10) and the electronic control device (100) is designed in such a fashion that it deactivates the suction pump (90) in this case.