echo $"Deleting Talend ESB Task ...."
# Build MetaServlet JSON script – deleteEsbTask, with $esbtaskId previously reading from environment variables
metaservlet='{"actionName": "deleteEsbTask","authPass": "admin","authUser": "admin@company.com","taskId": '$esbtaskId'}'
# Run base64url.sh to encode “requestDeployEsbTask” script within Base64.
metaservlet=`echo "$metaservlet" | /app/base64url.sh`
# Execute REST Call to TAC MetaServlet with encoded string.
curl -s 'http://{TACHost}:8080/org.talend.administrator/metaServlet?' -X POST -H 'Content-Type: application/json' -d "$metaservlet"