Destroy layout with directive