I solved it by applying this solution: https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883/46