Once a player is added to a boss bar, it is impossible to remove them from the boss bar without deleting it.
You could use for example a tag to keep track of the players a bossbar is currently visible to. Then you could remove the tag from the players you want to hide it for and use /bossbar set ... players with the tag.
/bossbar set ... players
But that is rather inconvenient in some cases.
You can use /bossbar set players to clear the list of players of a boss bar.
/bossbar set players
Reporter: NickNackGus
Assignee: (Unassigned)
Created: 2018-02-13T22:52:52Z
Updated: 2025-05-03T07:09:59Z
Resolved: 2018-02-14T14:09:56Z
ADO:
Confirmation Status: Unconfirmed
Area:
Mojang Priority:
Category:
Labels: /bossbar
Affects Versions: Minecraft 18w06a
Fix Versions:
Retrieved 2025-06-09T15:58:13Z
You could use for example a tag to keep track of the players a bossbar is currently visible to. Then you could remove the tag from the players you want to hide it for and use
/bossbar set ... players
with the tag.But that is rather inconvenient in some cases.