Just keep going until maturity and remove any male flowers you find, no need to remove the plant.
Even if any viable pollen is released at this late stage, there will not be enough time for any seeds to form.
Regardless of what it looks like, the fact that it has produced pure, mature male flowers, means that it is a hermaphrodite.
Remember too, any mature seeds found after harvest, if any, will carry dominant genes for being hermaphrodite too.
They will NOT be "feminized" and basically useless for any future grow projects.