jq удалить переменную

Use jq to delete a variable passed in from bash:
jq 'del(."'"$myvar"'")' test.json
Troubled Tapir