Can I delete or edit the mapping of a cost component to an analysis group?

Yes. You can delete or edit the mapping of a cost component to an analysis group, even if the cost component or the cost component group is referenced in a cost profile.