Main Content

removeTarget

Delete target computer

Since R2022b

    Description

    removeTarget(tgs, targetName) deletes the specified target from the Targets Tree. This function does not remove the software or applications deployed on the target.

    Examples

    collapse all

    Create a target object and add a target with name LinuxTarget1 containing user name user1 and password myPassword.

    tgs = linux.Targets();
    tg = tgs.addTarget("LinuxTarget1", "178.10.10.1", "user1", "myPassword");

    Remove the target.

    removeTarget(tgs, "LinuxTarget1");

    Input Arguments

    collapse all

    Target object created by the linux.Targets class.

    Example: tgs, target_object

    Specify the name of the target which you want to delete from the Targets tree.

    Example: "LinuxTarget1"

    Version History

    Introduced in R2022b