deleteRecipeFolderEx

[ Function ]

public static deleteRecipeFolderEx (
    path: string,
    options?: TcHmi.RecipeManagement.IRecipeOptions | null,
    requestOptions: TcHmi.Server.IRequestOptions | null = null,
    callback: null | ((this: void, data: TcHmi.IResultObject) => void) = null
): TcHmi.IErrorDetails;

Deletes a folder for recipes.

Parameter

Name

Type

Description

path

string

Path of the folder

options

TcHmi.Server.RecipeManagement.IRecipeOptions, null

Recipe management options

requestOptions

TcHmi.Server.IRequestOptions, null

Server request options

callback [ optional ]

(data: TcHmi.IResultObject) => void, null

Asynchronous callback function that is triggered once the action is completed.

Return value

Type

Description

TcHmi.IErrorDetails

Returns confirmation as to whether the operation was successfully sent.

deleteRecipeFolderEx 1:

Available from version 1.10.1171.142

Sample - JavaScript

TcHmi.Server.RecipeManagement.deleteRecipeFolderEx (
    'myTestfolder',
    null,
    {timeout: 2000},
    function(data) {
        if (data.error === TcHmi.Errors.NONE) {
            // Success
        } else {
            // Error
        }
    }
);