In this work, we report the magnetocaloric effect (MCE) in a quantum dot corresponding to an electron interacting with an antidot, under the effect of an Aharonov-Bohm flux subjected to a parabolic confinement potential. We use the Bogachek and Landman model, which additionally allows the study of quantum dots with Fock-Darwin energy levels for vanishing antidot radius and flux. We find that the Aharonov-Bohm flux (AB-flux) strongly controls the oscillatory behaviour of the MCE, thus acting as a control parameter for the cooling or heating of the magnetocaloric effect. We propose a way to detect AB-flux by measuring temperature differences.