Remove main directive