Script to SFTP files then delete them.

Hi,
I want to create a script.sh over my local server doing the following:
1- There are files are creating over a directory over my local server "DIR_1".
2- I need to SFTP transfer these files to another Host "HOST_1" by "USER_1"/ "PASS_1".
3- Then Delete the transferred files from my Local Server.

What have you tried so far?

Try

sftp $USER_1@$HOST_1 >> $SFTP_Log_file << END_SFTP
lcd $DIR_1
cd $rdir
get $file
delete $file
quit
END_SFTP

You have to use ssh with keygen