How to rollback deployments using ansible?

I have copied 5 files from host machine to remote machine. i have to remove files from remote machine the way stack works.

the file copied very first should be removed very last.