Hi there,
I will be happy to help you with that. I have checked your attached script. RIght now, you are trying to delete the rows that have a timestamp older than 2 days "from the script runtime moment" from the "Archive" sheet. I will be happy to add few lines of code to copy the deleted rows into the "Target" sheet.
I will be happy to address any of your questions!
Sincerely,
Mohamed