deleting check syntax dir