How to delete an entity by ID in Rust
Type debug.deleteentitybyid 123456 in the server console to delete the entity with that network ID. List several IDs to delete more at once.
debug.deleteentitybyid
Deletes entities by their network ID; several IDs can be given at once.
debug.deleteentitybyid <id> [id...] Examples
debug.deleteentitybyid 123456 Delete one entity.
Arguments
idRequired- Network entity ID. Separate several with spaces.
What it does
Get IDs from entity.find_entity or entity.find_radius. Deletion is immediate and permanent.
The game's own description: Delete entities by id. Supports multiple arguments
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.