I’ve had this problem repeatedly (including today) with the Mojave installer where it leaves behind the DMG file (5GB+) in the trash an nothing will delete it. The only way I have found to delete it is to
boot to recovery
mount the boot (data) partition
manually CD into the .Trash folder (or Users/user/.Trashes)
then rm -rf "Install macOS ...