# TerminateProcess

| **Name**    | ***TerminateProcess***                                                                                            |
| ----------- | ----------------------------------------------------------------------------------------------------------------- |
| Syntax      | TerminateProcess (String processName)                                                                             |
| Purpose     | To terminate a running process.                                                                                   |
| Description | Returns True if the function was able to terminate a running process of the given name. Otherwise, returns False. |
| Return Type | Boolean                                                                                                           |
| Parameters  | processName \[String.String] – Name of the process to check.                                                      |

![](/files/1S84IqHQFeBB2gM3qdzF)

**Example**

This object checks for processes in the Task Manager of your machine.

![](/files/g61EoSK4zc85XILwgYNw)

Therefore, in this example, we will be passing the required parameter to the function transformation object using a *Variables* object.

Where,

*processName* = Calculator

![](/files/Xoq1yDywV4vRptg2Vbmj)

In the output, you can see that the Boolean value, True, has been returned. Hence, the specified process has been terminated successfully.

![](/files/ihdZD6TykIHdSKnZDz0i)

This termination is also evident in the Task Manger:

![](/files/vqKkaQkyWllHEdecGE03)


---

# 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://documentation.astera.com/astera-data-stack-v10/functions/processes/terminateprocess.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.
