Hi Alan,
in my case I also get an unlink error, but the files persist.

On Sat, Feb 24, 2024 at 12:59 AM Alan C. Assis <acas...@gmail.com> wrote:

> I did a quick test in the sim:nsh
>
> nsh> mount
>   /bin type binfs
>   /etc type romfs
>   /proc type procfs
>   /tmp type vfat
>
> nsh> cd /tmp
> nsh> ls
> /tmp:
>
> nsh> echo "T1" > test1
> nsh> echo "T2" > test2
> nsh> echo "T3" > test3
> nsh> ls
> /tmp:
>  test1
>  test2
>  test3
> nsh> rm -r .
> nsh: rm: unlink failed: 1
> nsh> ls
> /tmp:
> nsh>
>
> It reported error "unlink failed: 1", but removed all the files.
>
> BR,
>
> Alan
>
> On Fri, Feb 23, 2024 at 8:47 PM Alan C. Assis <acas...@gmail.com> wrote:
>
> > Hi Jernej,
> >
> > Did you try enter inside the directory (i.e. /mnt) and run:
> >
> > nsh> rm -f .
> >
> > Maybe it helps.
> >
> > BR,
> >
> > Alan
> >
> > On Thu, Feb 22, 2024 at 3:55 AM Jernej Turnsek <jernej.turn...@gmail.com
> >
> > wrote:
> >
> >> Hi, I have accidentally written a lot of files on my sdcard and now I
> >> would
> >> like to delete them. I have tried with rm * command and it doesn't work.
> >> Is
> >> there a way to delete multiple files without formatting the card?
> >> Regards,
> >> Jernej
> >>
> >
>

Reply via email to