Delete Project Via Scripting

Is there a way to delete a project from a gateway via Ignition scripting?

What version of Ignition?

8.1.24

If you can get yourself a GatewayContext then you can get the ProjectManager and call ProjectManagerBase::deleteProject.

https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.30/com/inductiveautomation/ignition/gateway/model/GatewayContext.html#getProjectManager()

https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.30/com/inductiveautomation/ignition/gateway/project/ProjectManagerBase.html#deleteProject(java.lang.String)

1 Like