Skip to main content
jakubf0002
February 15, 2024
Question

Deleting objects during API deployment

  • February 15, 2024
  • 5 replies
  • 0 views

We have deployed app to prod environment back in 2020. After a few years it turned out that some features are not needed. We have deleted those objects on our dev environment then on git repo. During deployment to UAT or PROD based on version control system package.zip is created. This package does not contains deleted objects. This package is pushed to higher environment by Appian API - during deployment objects not available in package are not deleted from higher environment but Appian just remove them from deployed application. In other words objects remain in higher environment as not linked to particular application.

How to use automated deployment via API and delete objects from higher environment automatically ?

docs.appian.com/.../Deployment_Rest_API.html

5 replies

stefanhelzle0001
February 15, 2024

Appian does not support deleting design objects during deployments.

prakhars0731
February 15, 2024

You can remove the objects during the deployment which  you did not want to deploy but deleting is not possible or also not recommended by appian you can make unused object application in your env and can add those object which  ae of no use for your application. In that way it will be seperated.

jakubf0002
February 15, 2024

This is leading to situation that our prod environment contains a lot unused objects. If by any chance someone create new object on DEV with same name as delete object on UAT/PROD environment then it will fail on deployment as object with same name but different UUID already exist on higher environment. 

stefanhelzle0001
February 15, 2024

True. A common approach is to first rename objects. E.g. add a "_deprecated" to the name. Then deploy that to PROD. Then delete this object on DEV.

mathieud0001
February 15, 2024

I use this approach as well.