Regionerator
Disclaimer
Regionerator directly modifies and deletes region files. This cannot be undone - keep regular backups! You are solely responsible for any damages to your world or server incurred by using this plugin. Use at your own risk.
Functions
Regionerator regularly attempts to delete any area that is not "visited" or protected by a supported plugin. Players mark nearby chunks as "visited" during regular play unless they are in Spectator gamemode, as they are not actually physically there. This also allows administrators to safely check chunk info without affecting deletion time.
Administrators can check chunks' status, permanently protect chunks, and more with the use of available commands.
Source
Available on GitHub.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Version 2.5.0 does not support version 1.13.2
In reply to Last03:
What error are you getting? Regionerator does now require Java 17, but nothing on the Bukkit side should have changed.
In reply to Jikoo_K:
Thank you. I used java 8.
In reply to Jikoo_K:
I ran into another issue. If I set the value world: 1 in data.yml nothing happens after the server is started. To check if the plugin works, I have to set the time on my computer 1 day ahead.
In reply to Last03:
Make sure that if you are manually editing data files the server is off. Regionerator does not reload the data file when reloading, only the configuration. Live edits will be overwritten by the in-memory values.
Does it constantly run in the background or is there any way to manually run the program occasionally?
I'd love to run this on my server to prep it for 1.17
Thank you!
In reply to kaviatrix:
Regionerator just runs in the background - it's designed for eventual correctness to maintain cross-version compatibility. A single run will almost certainly miss areas because they've been loaded or modified recently because Regionerator doesn't use version-specific code to purge in-memory chunks and regions. Due to the nature of the runs not being 100% successful in all of the deletion attempts, there is no way to manually trigger runs. Frankly, I don't really want to have to deal with the support burden of "this chunk was delete-eligible and I ran Regionerator and it's still here" that I expect would come along with it.
None of the commands seem to work, when I load Regionerator 2.0.1 on a 1.16.1 server.
I know this version of Regionerator is for 1.15, so I guess this is just FYI at this point.
Though, I'd very much appreciate an update for 1.16.
In reply to werewindwolf:
Works fine for me on 1.16. Need logs if you're having trouble with the plugin enabling.
The plugin is enabled just fine and the commands are there, they're available to me (I'm the main op of our server), but there's not much in terms of logs corresponding to them.
[INFO]: HarlWindwolf issued server command: /regionerator reload
[CHAT] /regionerator [pause|resume|reload|(un)flag|check|cache] (no args for a report)
No matter which arguments I add, that syntax help line is all I get.
In reply to werewindwolf:
Try downloading a fresh copy from Bukkit or GitHub. Sounds like the command executor isn't being set, which would either indicate an issue enabling the plugin (which you claim there is not) or an issue with the file itself.
In reply to Jikoo_K:
No luck so far, I've tried several times and also redownloaded & -uploaded the jar after stopping the server and removing all Regionerator-related files. All I get is the above syntax message.
In reply to werewindwolf:
Can't reproduce. Can you get me startup logs for the server?
In reply to werewindwolf:
Found the only case in which this is possible - you haven't configured the plugin. You need to enable Regionerator in 1 or more worlds. This will be fixed next version, but I would have noticed it a lot sooner if you had given me startup logs - there's a warning when no worlds are set up.
Can you add support for claimed chunks using this plugin?
SongodaTeam - UltimateClaims
In reply to kenairock:
Weird, thought I had left you a reply saying I'd look into it. Either way, added in 1.5.9, please test before putting in a live environment.
In reply to Jikoo_K:
Thanks! this will be awesome.
So here is my situation. I have a server with 2 worlds. The one I want to delete chunks in has a city and an end portal which are both protected with WorldGuard. The world has been pre-generated using WorldBorder.
I want to delete most or all of the chunks outside those WorldGuard protected regions. Will this do it?
In reply to LaserCucumber:
We really need plugin like this!