Settings - Server - Library - “Empty trash automatically after every scan”
You want to keep that off if there is any chance that access to the media storage can sometimes have waiting times. Like for instance because the hard drive first needs to spin up its platters from idle state. Or because sometimes the network file share will not react promptly.