Minecraft wiki entry for scoreboard, associated text: Syntax
scoreboard objectives remove <objective> (Java Edition)
scoreboard objectives remove <objective: string> (Bedrock Edition)
Description
Delete the named objective from the scoreboard system. Data is deleted from the objectives list and score holders' scores, and if it was on a display list it is no longer displayed.
Arguments
JE: <objective>: objective
BE: objective: string: basic_string
Specifies the internal objective name.
In Java Edition, it must be an valid scoreboard objective name. In Bedrock Edition, it must be either a single word that isn't a number (allowed characters: -, :, ., _, A-Z, a-z, and 0-9) or a double-quoted string.
Result
Command Trigger Java Edition Bedrock Edition
... remove ... the arguments are not specified correctly Unparseable Failed
<objective> doesn't exist Failed
On success Delete the objective.
Output
Command Edition Situation Success Count /execute store success ... /execute store result ...
... remove ... Java Edition On fail 0 0 0
On success 1 1 the number of objectives in scoreboard system after execution
Bedrock Edition On fail 0 N/A N/A
On success 1 N/A N/A