Main Content

parallel.deleteProfile

Delete cluster profile

Since R2026a

    Description

    parallel.deleteProfile(myProfile) deletes the cluster profile specified by myProfile. The parallel.deleteProfile function removes the profile from the Cluster Profile Manager but does not delete any data associated with the profile.

    If you delete the current default profile, MATLAB® changes the default profile to Processes.

    The pre-configured Processes and Threads profiles are not available for deletion.

    example

    Examples

    collapse all

    Display the names of all the available profiles and delete one of them.

    Display the names of all the available profiles.

    allNames = parallel.listProfiles
    
    allNames = 1×5 cell
    'myMJSCluster'  'myMJSCluster2'  'Processes'  'Threads'    'WebCluster' 
    

    Delete the cluster profile with the name myMJSCluster2.

     parallel.deleteProfile("myMJSCluster2");

    Input Arguments

    collapse all

    Cluster or parallel environment profile, specified as a character vector or string.

    You cannot delete the preconfigured Processes and Threads profiles. However, you can delete any copies of the Processes and Threads profiles that you create.

    To view a list of the cluster profiles you have available, run the parallel.listProfiles function.

    Example: "myMJSCluster"

    Data Types: char | string

    Version History

    Introduced in R2026a