First of all: Yes, I searched for this topic here and found a lot of answers.
None of them was what I needed for my special use case though. Before you mark this as a duplicate, read my background information please.
Background story: I’m currently working as an independent app developer and freelancer. I’ve developed a framework that I’m selling to different costumers. While developing this framework, I was using the raw source code and committed it to one of my costumers Git Repos. I never thought about selling it at that point in time. It grew in complexity and function and I’ve got a compiled version of it now.
Now I would like to be able to delete some commits without rebasing the project to remove the source code because many people would have access to it.
I searched for quite some time and couldn’t find a working solution.