# 如何刪除Ubuntu上的文件？

## 最佳答案

By default "Move To Trash" option provided in nautilus (by right clicking on file) as follows:

Go to the menus at the top and click Edit->Preferences

In the window that appears, choose the Behavior tab, then click the button to include a Delete Command as shown in the image below.

Following that you should be able to delete a file directly from the File Manager:

In case you don't have write permission for a file or directory Move to Trash or Delete will not work and will be greyed out. This usually is the case for all files outside of your home directory /home/.