Meaning of the word "at Her/His Majesty's pleasure" in English

What does "at Her/His Majesty's pleasure" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

at Her/His Majesty's pleasure

US /æt hər/hɪz ˈmædʒɪstiz ˈplɛʒər/
UK /æt hər/hɪz ˈmædʒɪstiz ˈplɛʒər/
"at Her/His Majesty's pleasure" picture

Idiom

(of a period of detention or employment) for an indefinite period, dependent on the will of the monarch or government

Example:
The prisoner was sentenced to be detained at Her Majesty's pleasure.
He holds his position at His Majesty's pleasure, meaning he can be dismissed at any time.