Remove unwanted directive