When using the CLI, the type of each object must match that required for input. For example, when using the deleteGroup CLI, the uniqueName must correspond to a valid 'Group'. This exception may be thrown if the uniqueName referenced a Person instead.
Check that the uniqueName of the object corresponds to the the type required.