removes directives partial