adjust the backup template, and add the delete function