Ragdolls not being removed

Hello, I am working on an entity at the moment, when a player is killed by the entity I want their ragdoll to be removed, I use this code in the cl_init.lua


net.Receive("dedPlay", function(len, ply)

	hook.Remove("RenderScreenspaceEffects", "008Ef")	
	
	for k, v in pairs (ents.GetAll()) do
		print(v:GetClass())
		
		if (v:GetClass() == "class C_ClientRagdoll") then
			v:Remove()
		end
	end

end)

However this does not remove the players ragdoll, I have no idea why, any help with this will be greatly appreciated! :stuck_out_tongue:

This is where you failed: “class C_ClientRagdoll”