Freezing all Entities / Removing Specific types

I’ve been trying to make a command to remove all specific types of entities, and possibly freeze all entities of that type (to prevent collisions)

for k, v in pairs( ents.FindByClass("item") ) do

Still does not work. (the name is correct, and lowercase)

Any ideas why? I also tried v:Freeze(), with no luck.

Whats the issue? Is there an error, or is it just not doing anything?

It’s not v:Freeze().
Also the entities shave classes not types.
E.g prop_physics.

self:GetPhysicsObject():EnableMotion( false ) -- Freeze !

@Chris, just not doing anything.

Leystry, why is it not removing the entities of that class though? What’s a working way to do this?