Revert "Fixed undeploy action"

This reverts commit fa5cc5e2e8c1a6b6bbeaaa83384e973a7b48442d.
Revert "Revert "Fixed undeploy action""

This reverts commit 4751ca842b3832d98b286dbdc132c75e0bffa280.
Revert "Revert "Revert "Fixed undeploy action"""

This reverts commit 9010c5c684b63549f73ca94b74193524b3ba7c26.