execute unless block ~ ~ ~ minecraft:jukebox[has_record=true] run function nucleus:block/jukebox/delete
execute if entity @s unless block ~ ~ ~ minecraft:jukebox run function nucleus:block/jukebox/delete
