A terminal (1) is shown with a memory (3) for storing a file (F), means
(2, 4) for selecting a file (F) to be deleted, and means (2, 4) for
marking the file selected to be deleted as deleted. A system comprises at
least one second device (8, 8.1, 8.2, 8.n) with a memory (7) with a
storage location (13) for files marked as deleted, for storing files
marked as deleted in the terminal (1). The terminal (1) is provided with
a storage location (11) for storing at least a part of the data of the
file (F) marked as deleted, and means (2, 5) for transmitting at least a
part of the file marked as deleted, to be stored, if necessary, in the
storage location (13) in the second device (8) for files marked as
deleted. A method for managing files and a computer software product are
also shown.