by accident

Beginner (A2) neutral

Not on purpose, by mistake.

"I deleted the file by accident."