kafka
kafka

Reputation: 568

How can we securely create and delete a file?

Is there a way that a program could create a file (this is all within a Windows environment) such as a PDF, which is set to 'expire' within 7 days. By expire I mean that once the time period has passed it will be deleted. If the PDF were to contain sensitive data, could we be confident of a secure way of implementing such a process?

Upvotes: 0

Views: 89

Answers (1)

Igor
Igor

Reputation: 33983

You cannot create a self-destructing file in and of itself. You would have to create a service that runs x many minutes/hours/days, searches for expired files, and deletes them. See this question for some Windows-based schedulers.

Upvotes: 1

Related Questions