Getting rid of software engineers could be the Doorman Fallacy[1]. How much of the job is writing new code? A lot of it is solve problems/maintenance, improvements, integrations with other systems, update existing implementation, delivery automation support.
[1]: https://en.wikipedia.org/wiki/Doorman_fallacy