YouTube has taken down more than 11.4 million videos in the second quarter this year as the company is increasingly relying on software to moderate content and enforce rules.