The San Francisco-based company said it's slashing roughly 7% of its global workforce.