Script modified : 
- re-ordered deletion