Forum Discussion
How can I update, or delete an existing Application's JSON / .sol files in ABW?
As we develop our App, we want to deploy to ABW as we complete each contract or workflow for testing.
Is it possible to somehow delete the existing app and replace it with a newer JSON and .sol / .zip files (while in Dev, the data in the ledger or SQL isn't important)?
The only workaround at the moment is to rename the app <APPNAME>v1 / v2 etc each time, which is tedious and prone to configuration errors.
Thanks!
What we've tried:
If we use the `Add Application` feature to upload a newer version, although ABW accepts the new files, it is clear that the old app is still running.
The REST API has a Delete Application endpoint, but currently this isn't functional.
https://docs.microsoft.com/en-us/rest/api/azure-blockchain-workbench/applications/applicationdelete
(The SQL `application` table also has an Enabled flag, which doesn't seem to hide the App in the UI yet, if it is toggled false)
- Zeyad RajabiMicrosoft
We are working on a disable/enable feature for apps, which will hopefully be part of the next release. As for versioning of apps, that is something we are currently designing and looking into.
- Stuart CorransCopper ContributorThanks Zeyad. In the interim is there perhaps a workaround, even if it means deleting data in SQL or deleting code blobs from storage?
- Zeyad RajabiMicrosoft
There is no great workaround. You can hijack the API call to the page to add a filter for only showing enabled apps. You can modify the database, but that approach is tricky.