We are doing deployment of 'Deployment package' using powershell script as per this email :
But as per the client's deployment policy they need the script for undeployment -removal of the deployed components , majorly if the deployment fails or some other components depending on K2 Fails.
Please help on this.
You can revert back to before the package was deployed in you environment. This would mean that all the smartobjects, views, ect would be removed and your environment would be back to the state it was in before you deployed the package.
Unfortunately we do not have a script or that added functionality to remove deployed packages. What you can also do is log a feature request for this functionalty to be added in up comming releases of K2.