removes main from project tree