junobuild_shared::mgmt::ic

Function delete_segment

Source
pub async fn delete_segment(canister_id: CanisterId) -> Result<(), String>
Expand description

Deletes a specified segment (canister).

§Arguments

  • canister_id: The CanisterId of the canister to delete.

§Returns

  • Ok(()): If the canister is successfully deleted.
  • Err(String): On failure, returns an error message.