safe deletion of whole import statement