Open henning-gerhardt opened 4 years ago
See also #3448: The script should also delete the symbolic links in the user folders then.
In an external (bash-)script you can do what ever you want. I started a possible implementation a while ago: https://github.com/slub/kitodo-production/tree/delete_by_script ... but I did not test it except on my local environment.
Current creating of process directory and its sub directories are done by a script call (except for current open bug #3196). This script can do a lot of things which is sometimes needed in more complex environments. Even through different workflows and things which are made in different tasks it is even possible to add and change the content of a process directories. Not in any case is this done by the user of running tomcat instance.
As deleting of a process is only done by program and Java coded logic not all content of a process directory could be deleted because the tomcat user did not have the right permissions to delete everything.
It would be nice if deleting of process directory and its content would be done even by a script call where you have more possibilities to delete everything according to the used environment.