jq eliminar variable

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