It depends. Different machines offer different ways to remove or otherwise access the agitator.
What is your machine?
You may be able to find instructions about how to remove the agitator in the manual.
If you don't have a manual you may be able to find one on line.
acp
March 2017