let's say you had duplicated content on your site for a while. it get indexed, after that you remove it ( both from your site and google index). does google keep track of those pages and say " this site had at one time duplicated content" and use it in their algo to rank you ?! or you just remove it and you're safe.