Stuck Folder - can not delete

Nextcloud version (eg, 12.0.2):12.0.5
Operating system and version CENTOS 6
Apache or nginx version (eg, Apache 2.4.25): Apache
PHP version (eg, 7.1):

The issue you are facing:

I was having a problem with syncing so went on to the server and manually created the folder that needed syncing

But now Nextcloud says I do not have permission to write into this folder, I can’t delete it

I tried manually removing the folder via Terminal but it still shows in Nextcloud (I recreated it in case it had to be there)

I logged into MariaDB and ran the command to remove locks and checked the permissions on the folder

Is this the first time you’ve seen this error? (Y/N):Yes