remove the delete map action when exit