Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Scripting_function



Panel
titleDescription

Removes a database connection from Ignition.


Panel
titleClient 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.


Panel
titleSyntax

system.db.removeDatasource(name)

  • Parameters

String name - The name of the database connection in Ignition.

  • Returns

Nothing

  • Scope

All



Panel
titleCode Examples


Code Block
languagepy
titleCode Snippet
#This will result in the connection named MySQL being removed
system.db.removeDatasource("MySQL")