Skip to main content

entity_remove

Function entity_remove 

Source
pub async fn entity_remove(
    out: &OutputConfig,
    base_url: &str,
    token: &str,
    entity_ids: &[String],
    dry_run: bool,
    yes: bool,
) -> Result<(), HaError>
Expand description

Remove entities from the entity registry. Silently returns on empty input.

  • dry_run: print the planned removals and exit without connecting.
  • yes: skip the interactive confirmation (auto-set when JSON or non-TTY).

On partial failure, this function prints results and then calls std::process::exit(PARTIAL_FAILURE) so the exit status is unambiguous.