I add a file to ipfs by command, and how can i delete it? thx!
You can remove the pin and then run the garbage collector.
Ideally that would remove it, but just from your node.
ipfs pin rm $YOUR_HASH
ipfs repo gc
If you are looking for a broader discussion, you may find these threads interesting: