def METHOD_NAME(self):
    if self.to_remove_3d:
        self.runModule(
            "g.remove",
            flags="f",
            type="raster_3d",
            name=",".join(self.to_remove_3d),
            verbose=True,
        )
    if self.to_remove_2d:
        self.runModule(
            "g.remove",
            flags="f",
            type="raster",
            name=",".join(self.to_remove_2d),
            verbose=True,
        )
    self.del_temp_region()