API commands - edit file, remove file

Hi, I have a strange problem:

Creates file script.rsc…OK
writeSentence.AddWord(“/export”);
writeSentence.AddWord(“=file=script”);


Edit script.rsc…ERROR
writeSentence.AddWord(“/file/set”);
writeSentence.AddWord(“=file=script.rsc”);
writeSentence.AddWord(“=contents="” + Commands + “"”);

Remove script.src…ERROR
writeSentence.AddWord(“/file/remove”);
writeSentence.AddWord(“=file=script.rsc”);

I try:
=file=script.rsc
=filename=script.rsc
=file-name=script.rsc
From other posts, but without result

In CLI works fine
/file set script.rsc contents=“some_commands”
/file remove script.rsc

ROS v3.30, thanks for any advice

try

/file/remove 
=numbers=file.name

That’s it. Where can I send you bottle? :smiley:

Where can I find specific documentation mentioning numbers= when used with /file?

=.id= should also work, i have filed bug report.

also, =numbers=<.id> also should work.

And =numbers=<file.name> should work also in future releases.

these argument prefixes can be seen if you log in through CLI and use “?”

example:

i wrote

file set ?

output:

Change properties of one or several items.

<numbers> -- List of item numbers
contents -- Content of the file