Space is not freed immediately

Nextcloud version (eg, 20.0.5): 24.0.2
Operating system and version (eg, Ubuntu 20.04): CentOS Linux 7.9.2009
Apache or nginx version (eg, Apache 2.4.25): apache 2.4.6
PHP version (eg, 7.4): 7.4.29

The issue you are facing:

Is this the first time you’ve seen this error? N:

Hello. There is a problem. When I delete files and clean the trash, the space is not freed immediately, but after some time. Sometimes it is 2-3 minutes, and sometimes more than an hour. There are no errors in the log.

The cleanup is usually done by cronjobs. It depends how often you run them, some tasks taking a lot of time might be just run at night times (e.g. preview generation).