With the growing popularity of the online-service in cloud, users' data security protection has gradually become a new challenge. After one user sends his documents to the other, the files are no longer under the user's control. Once he needs the receiver to destroy data, he cannot ensure that the data is really thoroughly destructed. This paper provides a lifecycle controlling method of files, which is based on deadline and times. Deadline, times and destruction strategies are as attributes in the header of files. Files are made in new ones which contain storage layer and controller layer by double hash calculations. The method does not require intervention of any user or a trusted third one. A file will destruct itself according to the destruction strategy in the attributes after its deadline or times of access. The model presented in this paper has been proven simple and practical in practice and applied in three companies.