How to delete all entities of one type in Rust
Type debug.deleteentitiesbyshortname minicopter.entity 50 in the F1 console as an admin to delete every minicopter within 50 meters of you.
debug.deleteentitiesbyshortname
Deletes all entities with a given prefab short name, optionally within a radius of you.
debug.deleteentitiesbyshortname <shortname> [radius] Examples
debug.deleteentitiesbyshortname minicopter.entity 50 Delete minicopters within 50 meters.
Arguments
shortnameRequired- Prefab short name.
radiusOptional- Only delete within this many meters of you.
What it does
Without a radius it removes matching entities across the whole map, so double-check the name first.
The game's own description: <shortname> (optional: <radius>) - Delete entities with the given short prefab name
Good to know
- Irreversible.
Run it on your server
Type it in the server console or send it over RCON; admins can also use the F1 console in game. To keep a setting, run server.writecfg after changing it, or put it on the launch line as +name value.
Your own
game server.
CS2, Minecraft, Palworld and more, from $0.03 an hour.