In File menu click Remove. Current file will be removed from file system. The text still will be in the window. The confirmation dialog can be showed. The showing of the confirmation dialog can be toggled by the option