How do I hide a sales territory from users with a specific custom role?

You can use the Sales and Service Access Management tool to hide the sales territory from a custom role (Navigator > Tools > Sales and Service Access Management > Manage Data Policies). For detailed steps, see the topic How do I edit the data access permissions for a custom role and an object?.