If the machine is not draining then it is full of water.
As the filter is usually at the lowest point of the machine, you need to remove the water first. There are several ways to remove the water from the machine.
Your washing machine is likely to have a syphon pipe, which is a small pipe usually located by the filter. If so, unplug the syphon pipe and let it syphon all the water out of the machine.
The water can come out very slowly and you may need to put the cap back on the syphon pipe, empty the bowl and start again. Once the water has stopped flowing, put the cap back on and proceed to remove the filter.
Alternatively, if the waste pipe exits the machine at the bottom of the cabinet then you can disconnect the waste hose, lay it down on the floor and that should syphon the water out, provided it is not severely blocked.
If there is no syphon pipe and you can’t get to the waste pipe, the only other option is to pull the machine forward. You may require some assistance doing this. Lean the machine backwards first, put a bowl underneath the filter to catch the water and then lean it forwards to drain.
With any of these methods, water will always escape onto the floor so it’s a good idea to have towels laid out to soak this up.