I don’t understand what you mean by “remove”? You can’t prevent the user from rotating the device 😉
What I’ve done once was to move everything off stage for the unwanted views and only added a text “This is a landscape application. Please rotate your device.” or “This course cannot be displayed on a phone.”
An normal iPad (maybe not mini) should be able to display the default Desktop view, so to disable Responsive Course Design may be an option.