Thanks for everyone's help. I was so focused on finding an algorithm to do this in one call I didn't think to copy then erase.

Once again thank you guys for your help.