Extract Document,Store it ,Delete from DB

Certified Associate Developer

I have data saved in Appian DB ,

I want to export all the data into an excel   and store in a location ,and the data need to be deleted from DB,  

But before deletion I need to send an EMAIL   (after a week ) as kind of reminder that Data will be deleted  .

Then I have to remove all the DATAS from DB .

And this process need to be performed on the starting of every month .

 

Is it the correct approach ? 

I am getting 2 files from 2 tables , but Encryption node allwos one document to be protected with password .how will they be passed  to get encrypted 

  Discussion posts and replies are publicly visible