Skip to main content
Version: 7.9

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​

TypeParameterDescription
StringnameThe name of the database connection in Ignition.

Returns​

Nothing

Scope​

All

Code Examples​

Example #1
# This will result in the connection named MySQL being removed
system.db.removeDatasource("MySQL")