In this paper we study boundedness of commutators of the multi-dimensional Hardy type operators with BMO coefficients, in weighted global and/or local generalized Morrey spaces LΠp,φ(Rn,w) and vanishing local Morrey spaces VLlocp,φ(Rn,w) defined by an almost increasing function φ(r) and radial type weight w(∣x∣). This study is made in the perspective of posterior applications of the weighted results to some problems in the theory of PDE. We obtain sufficient conditions, in terms of some integral inequalities imposed on φ and w, and also in terms of the Matuszewska-Orlicz indices of φ and w, for such a boundedness.