forcedelete Console Command
Syntaxforcedelete [radius] [name]· Cheat
Updated
Remove brackets [ ] when typing the command.
- Radiusinteger
- The radius you want to remove objects within. This can range between `1` and `50`.
- NameOptional
- The name of the object you **only** want to remove. If none is specified, then all objects within the given radius will be removed. Some objects are never removed: players and tombstones, Valkyrie, points of interests (locations), dungeons and their rooms, Vegvisirs, and Boss stones at the start temple.
Fill in the arguments below to build a ready-to-paste forcedelete command.
Here are examples of how to use forcedelete.
Removes objects within the default 5-meter radius around the player.
Removes all objects within 20 meters of the player.
Removes only objects whose ID contains "Greydwarf" within 10 meters.
The command forcedelete is used to remove items or entities from the game's world. When using this command, all objects within the specified radius of the player (where the player is located) will be deleted.
You can add optionally specific names of objects to delete them, even if they're not within the specified radius.
For example forcedelete 5 would delete any game object within a radius of five around the player's character.
If applied with the name of an object, it will delete that specified item from anywhere in the world. For example, forcedelete 5 Skeleton would erase every Skeleton within a radius of five
This command is often used to clear out unnecessary items, correct mistakes, or troubleshoot lag issues.
- addstatusThis command will add the specified status effect.
- aggravateThis command aggravates neutral entities within a 20-meter radius.
- beardThis command permanently changes your beard. If used without an argument, it removes your beard.
- clearstatusThis command removes all active status effects, both positive and negative.
- dpsdebugThis command toggles the dps debug print on and off.
- envThis command sets a debug environment using given variables. View all environment IDs here: [valheimcheats.com/environment](/environment).
- eventThis command triggers the specified event. View all event IDs here: [valheimcheats.com/event](/event).
- exploremapThis command reveals the entire game map.
- ffsmoothThis command toggles the smoothing filter on the freefly camera. `1` enables smoothing for cinematic captures; `0` returns to the snappy default.
- findThis command finds and pings matching objects on the map, placing pins if required.
- flyThis command toggles flight mode.
- freeflyThis command enables or disables the free camera mode.
- gcThis command displays garbage collection information.
- genlocThis command redistributes all unplaced game locations.
- ghostThis command toggles ghost mode where enemies ignore the player.
- godThis command activates god mode.
- gotoThis command teleports the player to given coordinates.
- hairThis command permanently alters your hairstyle. If used without an argument, it removes your hair.
- healThis command restores your health to maximum.
- itemsetThis command spawns a premade set of items. View all sets below. Include the `keep` flag to keep current items; if not included, current items will be dropped.
- killallThis command kills all nearby enemies and tamed creatures.
- killenemiesThis command kills all nearby enemies.
- killtameThis command eliminates all nearby tamed creatures.
- listkeysThis command lists all global keys in the game.
- locationThis command spawns a game location instance; however, saving is permanently disabled. To spawn a location instance and still keep saving enabled, append the `SAVE` flag after the location ID — see the second example below. View all Location IDs here: [valheimcheats.com/location](/location).
- modelThis command switches the player's character model from masculine to feminine.
- nextseedThis command forces the next dungeon to generate based on a new seed, disabling game saving.
- nocostThis command toggles no-cost mode.
- playersThis command modifies the game difficulty scale. Use `0` to reset the difficulty.
- posThis command displays the player's coordinates.