Is it safe to delete the jobs status files in the extension directory?

Hi,
Is it safe to delete the jobs status files within the extension directory? We’re seeing them slowly increase on a staging environment so instead of increasing the disk space, is it ok to delete the files instead?

If it is safe to delete them, does XWiki need to be restarted?

root@xwiki-0:/usr/local/xwiki/data/jobs/status/extension# du --max-depth=1 -h
131M	./action
252M	./index
382M	.

Thanks in advance,
Alex

Hi @alewis001

Regarding the perm dir, we’ve put some info at https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Configuration/#HPermanentDirectory about the places that can be deleted but indeed, for the jobs directory it’s not very precise. It just says it can cause problems.

I think it’s ok to remove statuses for jobs that are finished and were transient (like a refactoring operation). @tmortagne can probably comment more on that and then we can update the doc.

Regarding your issue, I have found a few jira issues:

@tmortagne question for you: is jobs/status/extension/index containing the extension index? If so, doesn’t it feel strange to have that data in the jobs directory? I’d have expected it in the cache directory.

Thank you @vmassol, that’s helpful. I’ll wait to see what @tmortagne has to add before I start deleting files :slight_smile:

Deleting /usr/local/xwiki/data/jobs/status/extension is safe, yes.

I added a bit more details in https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Configuration/#HPermanentDirectory.

Thanks @tmortagne for the confirmation and the doc update, very much appreciated.