When you use the vote command to vote, you're voting status is pending. Only when the last block of the current epoch is generated, your voting status will automatically change to active。 Next, follow this document, and you will withdraw your vote
How To withdraw pending vote
Because your current vote is to contribute to the validator(in the next epoch), so your voting MAP will go through two states the pending and the active state.
So, You can use getPendingVotesForValidatorByAccount command to check whether you have inactive MAP
If you're voting MAP is in active, you can use revokeActive command to withdraw your active voting MAP. If you perform this step, the votes you withdraw will lose the corresponding reward.
First, you can use the getActiveVotesForValidatorByAccount command to see how many active votes you have
Map chain implements an unlocking period, a delay of 60 days after making a request to unlock Locked MAP before it can be recovered from the escrow.
Unlocks MAP, which can be withdrawn after the unlocking period. Unlocked MAP will appear as a "pending withdrawal" until the unlocking period is over, after which it can be withdrawn via "withdraw" command.
You can only unlock your nonvoting MAP,if you want to cancel your voting MAP please to Reference How To withdraw voting MAP
If you are a validator you will not be able to unlock 1000,000 MAP that necessary pledge as validator.
You need unlock command to perform unlock operations,more detail about unlock command please to see this .
Timestamps is the time you can withdraw, in seconds
Step 2:withdraw
Withdraws MAP that has been unlocked after the unlocking period has passed. this step equivalent to withdrawing the money you locked in the smart contract to your account address.
You need withdraw command to perform withdraw operations,more detail about withdraw command please to see this .
At this step, the MAP you locked has been transferred to your account address. You can inquire by yourself.