If you want to remove the "communities" and "affiliates" tabs inside your course, this video will show you how to do it.
Navigate to Sites, then Client Portal, and go to Settings.
Inside Settings, click on App Permissions.
Select the desired options: COMMUNITIES, COURSES, and/or AFFILIATES.
Click Save Settings to confirm.