World deletion

I have been having issue with deleting worlds from the server. When I try to delete the world I get the warning message:
The world 1702916171 (chris_test) may have leaked: first encounter (5 occurences).

It deletes all the content of the world excluding “r.-3.3.mca” in the regions folder.
Here is the code I am using to delete worlds.

Any help would be greatly appreciated,
Thanks Chris Mack

Might want to try creating a delayed task. It might be attempting to delete the world before it has been completely unloaded.

1 Like

@Zidane would know more I think.

Also, which version are you using? 1.8.9 or 1.9.4/1.10?

1 Like

I’m using 1.8.9

Is this in a synchronous or asynchronous task? I know that there would be issues it was async.

1 Like

Yeah it’s in a sync task. Although I haven’t had the issue today which is weird. I’ll let you know @simon816 if it happens again

Yep it’s now happening again :confused: