Slightly modified delete action

Slightly modified the way the destroy  units action works
Updated GitIgnore