I think that classifying a game as an RPG, more than most genres, is a collection of aspects and features that have to be weighted and judged in context. Here's a "Top Ten" list of aspects that I think are useful when judging whether something should be viewed as an RPG. The more points it hits, the more justifiable it is to call it an RPG:
- Use of visible, changeable, STATS to define a character's power level and style
- Inclusion of a PARTY of multiple playable characters who fight (or otherwise act) alongside each other, as opposed to picking one character at a time who does everything
- Use of a separate BATTLE SCREEN, separate from the main map the player uses to travel around, where combat or a similar activity takes place - extra weight for turn-based, menu-driven combat, but this isn't essential
- Emphasis on NARRATIVE and storytelling as a core aesthetic of play
- A COHERENT WORLD, as opposed to a series of stages or unconnected places, which can be physically explored and backtracked through at the player's leisure
- Inclusion of an INVENTORY of usable and collectible items
- Use of a LARGE CAST of human or anthropomorphic characters, including NPCs, with extra weight toward well-developed characters
- Emphasis on CHOICES over physical skills to determine either the player's success, the direction the storytelling unfolds in, or both
- Inclusion of DOWNTIME activities which feel separate from the game's main draws - these may be optional (minigames, sidequests) or they may happen in the course of mandatory play (shopping for armor, talking to NPCs in a town to trigger plot points), but they should feel 'separate' from what might be considered the 'main' gameplay
- Having NO TRUE FAILURE STATE - the player might see a Game Over, but is intended to go back and re-do things they did wrong, rather than interpreting it as having 'lost the game' to a competitive opponent or needing to start a new game
Few RPGs hit every single one of these, but most will hit at least half, whereas most games that we don't consider RPGs will only hit one or two.
===
Taking this back to the original question, if you were to strip out Combat and Magic from an RPG, you'd probably still have a majority of these items, and therefore you'd still have an RPG. Removing Combat would likely knock out #3, and if the game is extremely linear like some JRPGs are, also #8. Removing Magic wouldn't knock out any of these items whatsoever (which makes sense since some RPGs that are not in fantasy settings don't use Magic anyway).
One question to ask yourself, though, is if you removed combat from
your RPG, would it still be a compelling game? If not, then it might be high time to re-evaluate your game design, and think about why you are asking the player to do all of the things outside of combat that aren't interesting nor fun on their own. Yes, it's a nice thing to have Downtime activities in the midst of the (hopefully) fun 'core' activity of combat, but if these Downtime activities are taking up half your game or more in total, you should give a lot of thought to how to make them compelling in their own right, so that the player can enjoy every moment of your game, instead of trudging through it to get to the cool parts.