Write a function `remove_parentheses` that takes a string as input and removes all parentheses and the text inside them. The function should return the modified string.
#### Example Usage
```python [main.nopy]
remove_parentheses("python (chrome)") # Output: "python"
remove_parentheses("string(.abc)") # Output: "string"
remove_parentheses("alpha(num)") # Output: "alpha"
```
#### Constraints
- The input string may contain multiple sets of parentheses.
- Ensure that no extra spaces are left behind after removing the parentheses and their contents.