Skip to main content

Terminate Application

Stop/terminate/kill a running application process using its process ID (PID) or process name.

Category: Desktop Application Automation · Group: General · Activity name: TerminateApplication

The TerminateApplication activity in the designer

Example

outputVariable = TerminateApplication("<processIdentifier>", forceTerminate=True)

Inputs

NameTypeRequiredDefaultDescription
Process Identifier or Process NamestringYesProcess ID (PID) or process name of the application to terminate. Use PID for precise control or name to match multiple instances.
Force TerminationbooleanForcefully terminate the process if graceful shutdown fails (use with caution as unsaved data may be lost).

Outputs

NameTypeDescription
outputVariablebooleanReturns true if the process was successfully terminated, false if the process was not found or could not be stopped.