What version AC are you on? At what stage are you trying to remove?

Should be able to inactive and then remove in the prescribing window. You should also be able to inactivate in the "current medications" window of the chart as well as the summary tab.