Cannot delete a file using REST

I’m using REST and everything is working just dandy with the exception of deleting a file!

I’ve replaced the XXXX with my subdomain name

DELETE https://xxxxx.backendless.app/files/textfiles/test.txt

throws an error
{

"code": 6000,

"message": "File or directory cannot be found.",

"errorData": {}

}

But when i make a
GET https://xxxx.backendless.app/api/files/textfiles?action=count&pattern=*.txt

it returns the number of files as 1 which is correct

im obviously doing something wrong but cannot work out where ive gone wrong

hello @Bubbleboy

you should use

DELETE https://xxxxx.backendless.app/api/files/textfiles/test.txt

we have a mistake in the documentation, I have created internal ticket BKNDLSS-27994 to fix the doc