Remove file from a directory

Hi. Im trying to write script for my arduino nano, i found some scripts that removes all contents from sd and it works perfectly but when I edit it to remove just one file in directory it's not working at all.

On sd card there is only one folder called update and inside it there is few files including one named file11, just file11 without any extension, maybe that is problem?

sd.remove("update/file11") does nothing....

If someone can help me I would be grateful, thanks in advance

Hi @nikars ,

Welcome to the forum..
Wonder if it's the length..
arduino.cc/reference/en/libraries/sd/

from the first para in usage..
It uses short 8.3 names for files.

good luck.. ~q

Im sorry but is there any solution for this or I must switch to another board?

Can you please take look of this script and lines 68 and 89

have you tried sd.remove("/kfk_update/deviceid")

Im not sure how I should do SD.open first and etc... Can you please help me?

have you tried post #4?

Also might want to try sd.remove("/kfk_up~1/deviceid")