1. Create a text file jobs with job ID numbers:
3001
3002
3003
3134
3135
  1. Create the delete_jobs.sh script:
cat jobs | while read JOB_ID                                                                                          
do
	/usr/bin/bconsole -c /etc/bacula/bconsole.conf <<EOT
delete                                                                                                                          
3
${JOB_ID}                                                                                                                       
EOT
done
  1. Run the delete_jobs.sh script

Comments