Middle
How to delete a file named --rm?
sobes.tech AI
Answer from AI
Depending on the context (shell or command):
In shell:
# Removing a file using a relative path
rm -- ./--rm
In a command where --rm might be interpreted as a flag:
terraform plan -destroy -target="module.my_module[--rm]"
Or using an absolute path if necessary:
rm /path/to/file/--rm