# DeleteFolders

Calling this method deletes a folder and all subfolders recursively on the file system that is used for working directory of the SceneControllerModule.\
The working directory is "/images/history" which is mapped to the "/etc/aziot/images/history" folder on the host OS system.

### **Method Name:**

DeleteFolders

### **Payload:**

The direct command requires a list of folders to delete, relative to the working directory of the SceneControllerModule.

```
{
    "folderNames": [
        "folder1",
        "folder2"
    ]
}
```

This corresponds to deleting all files and folders in the following locations:

/images/history/folder1

/images/history/folder2

### **Return value**

The direct command returns an OperationResult that indicates either success or failure.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tricloudnexus.io/edge/nexus-modules/data-connector-modules/scenecontrollermodule/direct-commands/deletefolders.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
