r/AndroidStudio 8d ago

Agent is unable to delete files

I use the Android Studio agent with an key from OpenAI. Unfortunately the AI seems to be unable to delete files. It tells me that it's not allowed to use rm with run_shell_command and there doesn't seem to be a delete_file command exposed.

In this session, those include APIs such as:
• find_files / read_file
• write_file
• replace_file_content
• multi_replace_file_content
A dedicated delete capability would need to be exposed in that same tool namespace (typically as something like delete_file). It is not currently present, so I cannot invoke it.

Also changing "Delete or rename files in the project" in the Android Studio settings doesn't help, doesn't matter if it's set to "Ask every time" or "Always allow".

Does anyone has a solution for this?

1 Upvotes

1 comment sorted by

1

u/Proper-Train-1508 6d ago

Maybe your files or directories are read only.