system.db.removeDatasource
This function is used in Python Scripting.
Descriptionβ
Removes a database connection from Ignition.
Client Permission Restrictionsβ
Permission Type: Datasource Management
Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope.
Syntaxβ
system.db.removeDatasource(name)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | name | The name of the database connection in Ignition. |
Returnsβ
Nothing
Scopeβ
Gateway, Vision Client, Perspective Session
Code Examplesβ
Code Snippet - Removing Database from Gateway
# This results in the connection named MySQL being removed.
system.db.removeDatasource("MySQL")