I have rewritten a few ebooks before, however I was not selling them, I was giving them away and uploading them to torrent sites.
I completely rewritten the eBooks I did, the books was based on forex strategies, basically the strategy was the same, but in different words. I would not make it too obvious what you are writing is copied. ie change everything, every sentence and paragraph.