RE:NODE

Valheim dropped items and world cleanup on a server

By RE:NODE Team
11 min read


Items dropped in the open wilderness of Valheim eventually despawn on their own, but items dropped inside a base never do, and that is where clutter builds up on a shared server: stone by the kiln, wood after a felling session, resin and feathers nobody wanted, all lying on the floor for months. Each loose item is a world object that the server stores, the zone owner simulates and every visiting client loads. Tombstones stay until emptied, and dead tames drop their loot like anything else. The vanilla cleanup tool is the admin devcommand removedrops, which deletes every loose item in the loaded area - powerful, irreversible, and best preceded by a warning in the group chat and a backup.

For the wider picture of what makes a server slow, see Valheim server lag: zone ownership and desync. This post is about the things that pile up.

How Valheim handles items on the ground#

When an item leaves an inventory - dropped by a player, by a killed creature, from a destroyed chest, from a felled tree - it becomes a separate object in the world, with its position, the item type and the stack size. It is saved in the world file like a building piece.

The game cleans up some of these by itself. A dropped item outside a player base is destroyed after roughly an hour, but only while its zone is loaded - the timer is part of the simulation, and nothing is simulated where nobody is. Items inside a player base are exempt and stay indefinitely. A "base" here means the area around player-built base pieces such as workbenches and fires, the same thing that lets enemies recognise a base and stops them spawning right next to it.

Where the item liesDespawns?Why it matters
Wilderness, zone loadedYes, after roughly an hourOld battlefields clean themselves up
Wilderness, nobody nearNot while unloadedTimer only runs while simulated
Inside a base areaNoClutter accumulates here
In a tombstoneNoTombstones are containers
In a chest, cart or on an item standNoContainers and stands are not drops

The exact timer and the radius of a base area are internal values that have not been changed often, but treat "about an hour" as an approximation rather than a promise. If it matters, drop a piece of resin in a field and come back.

This one rule explains the typical server pattern. The wilderness looks tidy. The main base has three hundred stacks of loose stone, wood and bone fragments within twenty metres of the smelters, and they have been there since the swamp was cleared.

Tombstones and corpse runs#

When a player dies, their inventory goes into a tombstone at the spot where they died. Tombstones are containers, not drops, so the despawn rule does not apply. A tombstone stays in the world until it is emptied, at which point it disappears.

What that means on a server:

  • Tombstones persist across logouts and restarts. A player who dies and logs off leaves a tombstone behind until they come back for it.
  • Anyone can loot a tombstone. Wards do not protect it. Other players can empty it, and on most servers the rules say they should not unless asked.
  • Unclaimed tombstones are clutter too. A player who quit the server after dying in the swamp left a full container in the world. It is one object, not a big cost, but on a long-running community server there can be dozens.
  • Several deaths, several tombstones. Dying again on the way to a tombstone leaves a second one with what you were carrying.

The death penalty itself - skill loss and how the modifier changes it - is in Valheim death penalty and tombstones. When a tombstone is genuinely lost, stuck under the map or inside a rock, admin tools for lost tombstones covers finding it with pos and goto, and when spawning the items back is the better answer.

Dead tames, dead monsters and their loot#

Creatures that die drop their loot as ordinary dropped items: meat, hides, trophies, scales. That includes tamed animals.

  • A dead tame leaves no tombstone. When a tamed wolf, boar or lox dies, it drops its normal loot on the ground, plus anything equipped such as a lox saddle. The loot is a drop, so outside a base it despawns; inside a base it stays.
  • Tames killed inside a base leave permanent clutter. A raid that kills the boar pen leaves a pile of raw meat and leather scraps that will sit there until someone picks them up.
  • Breeding pens drop constantly. A pen that is culled for meat drops loot inside the base every time. That is fine if someone collects it; it is clutter if nobody does.
  • Monster drops after a raid. Raid enemies killed at the walls drop inside the base area, so a raid on a big base leaves dozens of loose items that never despawn.

Tames are also some of the most expensive living objects on a server, because the zone owner simulates every one. Valheim tames, breeding and server load covers sensible pen sizes. The short version for clutter: whoever runs a pen collects its drops.

Cleaning up with removedrops and other commands#

The vanilla admin tools for clutter are devcommands. On a dedicated server, the admin must be in adminlist.txt, have the console enabled with -console in their Steam launch options, and type devcommands in the F5 console. Valheim devcommands explained covers enabling them and what each costs.

CommandWhat it removesLeaves alone
removedropsEvery loose item in the loaded area around youTombstones, chests, item stands, carts
killenemiesHostile creatures nearbyTames and players
killtameTamed creatures nearbyEnemies and players
killallAll creatures nearby, tames includedPlayers

removedrops acts on the area loaded around you, not a radius you choose. Standing in the middle of the main base and running it clears the base and its surroundings - including anything a player deliberately left on the floor. People do use the floor as storage.

A safe routine for cleaning a shared base:

  1. Announce it. "Clearing loose items at the main base on Sunday evening, put anything you want in a chest" in the server Discord a few days ahead.
  2. Take a backup. On a panel host, take a manual backup right before. On RE:NODE that is one click on the Backups tab, and restoring is one button if someone's favourite pile of trophies turns out to have been on the floor.
  3. Stand in the right place. Go to the centre of the cluttered area. Use fly from devcommands if you need to reach it without walking through someone's house.
  4. Run it once. removedrops, then check the console's response and look around.
  5. Save. save writes the world straight away, so the cleanup survives a crash.
code
devcommandsremovedropssave

What grows the world file over time#

A Valheim world is one .db file plus a small .fwl. A fresh world is a few megabytes; a long-lived one is commonly tens to well over a hundred megabytes. The file holds every object the world remembers, and a few categories account for most of the growth.

SourceHow it growsCan you clean it?
ExplorationEvery generated zone stores its trees, rocks, plants and locationsOnly by regenerating zones with a mod
Building piecesEvery wall, floor, torch and decorationBy deconstructing
Terrain editsA terrain record per modified zoneNot in vanilla
Dropped itemsOne object per loose stackremovedrops, or pick them up
Containers and contentsChests, carts, item stands and what they holdBy emptying and removing
CreaturesTames, breeding stock, monsters in loaded zonesPens kept small, killtame in emergencies
Signs, portals, shipsOne object eachBy deconstructing

Exploration is the biggest single factor, and it is not clutter - it is the world. When a player first goes near a zone, the game generates it: vegetation, rocks, pickables, dungeons and other locations. Those become stored objects. A group that sails around the whole map in a month grows the file far more than any amount of dropped stone. This is also why memory use climbs with how much of the map has been explored, as how much RAM a Valheim server needs explains.

Building comes next. A large base can run to many thousands of pieces. Each is stored and loaded. Terraforming adds its own records per zone - see Valheim terraforming on servers.

Dropped items are usually a small share of the file, but a large share of the cost where they lie. Three hundred stacks in one base zone are three hundred objects the zone owner simulates and every visitor loads, all in the busiest place on the map. Removing them does more for base performance than for file size.

The file does not shrink much on its own. Picking things up removes the drop objects, but explored zones, terrain records and pieces stay unless removed.

Keeping a long-running world tidy#

Most of the work is habits rather than commands.

  1. A dump chest by every work area. A labelled chest next to the kiln, the smelters and the workbench, so stone, wood and bone have somewhere to go that is not the floor.
  2. Pick up after felling. Trees felled inside a base drop logs and wood that never despawn. Felling outside the base area lets the leftovers clean themselves up.
  3. Fight raids at the edge. Drops from raid enemies killed outside the walls can despawn; drops inside the base cannot.
  4. Retire abandoned outposts. An outpost nobody uses still holds every piece, chest and dropped item. Deconstruct it, or at least empty it, and rename its portal so it cannot re-pair - see designing a Valheim portal hub.
  5. A monthly cleanup slot. Announce it, back up, run removedrops at the main base and the busiest outposts. Groups that do this rarely see bases slow down from clutter.
  6. Watch the file size. Note the .db size in the panel's file manager once a month. Steady growth is normal; a sudden jump after one weekend is worth asking about.
  7. Weekly restarts. A scheduled clean restart keeps memory flat and makes sure the world is saved regularly. Valheim scheduled restarts and automation covers warning players and saving first.

Mods can automate some of this. Upgrade World by JereKuusela includes commands for counting and removing objects across larger areas than the vanilla commands reach, and for regenerating unvisited zones; it is a precise tool with no undo, so read Upgrade World for Valheim and back up before using it. There are also server-side cleanup mods on Thunderstore that delete old drops on a timer. They work, but they bring back the floor-as-storage problem in automated form - make sure everyone knows the rule.

When cleanup is not the answer#

Clutter is the easiest thing to blame for a slow world, and not always the right one.

  • Lag that follows one player is zone ownership, not clutter. The fix is moving ownership, not deleting items.
  • Long loading after teleporting is the client loading the destination. A tidier base helps a little; arriving at a portal just outside the base helps more.
  • Slow saves on a huge world are the size of the explored map plus the bases. Shortening -saveinterval makes each save smaller in lost progress, not faster.
  • A world that has simply been explored to the edges is as big as it is going to get. If performance is unacceptable, a fresh world is the honest answer - starting a new world without losing characters covers doing that without losing anyone's gear.

And if a cleanup goes wrong, the world is one file. Restore the backup taken before it; Valheim backups and world corruption explains which files to keep and why the automatic backups beside the world do not count as a real copy.

FAQ#

Do dropped items despawn in Valheim?

Outside a player base, yes, after roughly an hour of the zone being loaded. Inside a base area near workbenches and fires they never despawn, which is why bases fill up with loose items.

Does removedrops delete tombstones?

No. Tombstones, chests, item stands and carts are containers, not loose drops. removedrops clears only items lying on the ground in the loaded area around the admin.

Can removedrops be undone?

Only by restoring a backup taken before it ran. There is no in-game undo, so warn players and back up first.

What happens to a tamed animal's saddle when it dies?

It drops on the ground with the creature's other loot. Outside a base it will despawn if nobody picks it up, so recover it quickly.

Why is our world file so large?

Mostly exploration and building. Every generated zone stores its trees, rocks and locations, and every building piece is saved. Dropped items are usually a small part of the size but a large part of the local lag where they lie.

Should we use an automatic cleanup mod?

On a public server with many casual players, it can help. On a small group server, a monthly announced removedrops is simpler and nobody loses a pile they meant to keep.