Yes if its purely that the unit limit has been reached deleting another redundant unit will free up the space. That unit cannot already be present anywhere in your game though.
As for which exact files you need to edit to make sure you've caught everything, what you've written seems okay but I'm only guessing really so wait for a more informed answer on that part :p
Cheers
Bookmarks