--- title: "system.db.removeDatasource" description: "Removes a database connection from Ignition." --- # system.db.removeDatasource > Removes a database connection from Ignition. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions [Permission Type](ignition-modules\vision\vision-project-properties\vision-project-properties.md#vision-permissions-properties): 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 ```python title="Code Snippet - Removing Database from Gateway" # This results in the connection named MySQL being removed. system.db.removeDatasource("MySQL") ```