delete script updated for res folder