LilWorlds v1.2+ features enhanced world deletion that goes beyond simply removing world files. The deletion process includes comprehensive configuration purging to ensure no orphaned entries remain in your server configuration.
Important: World deletion is permanent and cannot be undone. Always create backups before deleting important worlds.
The deletion process removes world references from:
Copy
# Before deletioninventory-groups: survival: - world - myworld # ← This will be removed - world_nether creative: - creative_world - myworld # ← This will also be removedworld-groups: main: - world - myworld # ← Removed from here too# After deletion - myworld completely removedinventory-groups: survival: - world - world_nether creative: - creative_worldworld-groups: main: - world
# If a group becomes empty after world removalinventory-groups: survival: - world empty-group: [] # ← This group will be removed# After cleanupinventory-groups: survival: - world # empty-group removed automatically
LilWorlds requires explicit confirmation for deletion:
Confirmation Message Example
Copy
⚠️ WARNING: World Deletion ⚠️You are about to delete world 'myworld'.This action will:✗ Permanently delete all world files✗ Remove all configuration entries✗ Remove from inventory groups: survival, creative✗ Purge all world-specific settings✗ Move 3 online players to spawnThis action CANNOT be undone!Type '/world remove myworld' again to confirm deletion.
Before deletion, all players are safely evacuated:
Copy
# Players are automatically moved to spawn[INFO] Moving player 'Steve' from 'myworld' to spawn world[INFO] Moving player 'Alex' from 'myworld' to spawn world[INFO] All players evacuated from 'myworld'
[INFO] [LilWorlds] World deletion initiated: myworld (by PlayerName)[INFO] [LilWorlds] Evacuating 3 players from world 'myworld'[INFO] [LilWorlds] Unloading world 'myworld'[INFO] [LilWorlds] Purging configuration entries for 'myworld'[INFO] [LilWorlds] Removed from inventory groups: survival, creative[INFO] [LilWorlds] Removed from world groups: main[INFO] [LilWorlds] Deleting world files for 'myworld'[INFO] [LilWorlds] World 'myworld' successfully deleted and purged
# Recommended deletion workflowdeletion-workflow: 1. Announce planned deletion to players 2. Create backup if world has value 3. Move players out of world 4. Unload world temporarily to test 5. Verify no issues with world offline 6. Proceed with deletion 7. Monitor for any issues post-deletion