Hi,
There are two ways that VM is connected to Log Analytics workspace - either via Microsoft Monitoring Agent or through Azure Monitor Agent. The latter is a replacement for the first, but both can function side by side. As long as both are removed your VM is no longer sending data to Log Analytics workspace. The existing data on the workspace for that VM will not be deleted though. It will stay there until it is purged by the retention process depending what retention is configured for the workspace or the tables where the data is. I would assume that in your case you see still some of the old data in Log Search or workbooks and you think that the VM is still connected.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.