Hi @Samyak
Thankyou for using Microsoft Q&A platform and posting your query.
After the job is done, you can opt to delete the pool, please refer
https://learn.microsoft.com/en-us/rest/api/batchservice/pool/delete
And as first step you can create the pool, please check
https://learn.microsoft.com/en-us/rest/api/batchmanagement/pool/create