A method and system for data protection for applications that includes
registering applications with a storage cleaning mechanism so that the
registered applications can receive notification of impending storage
cleaning operations. Upon receiving notification of an impending cleaning
operation, the registered applications can release or unreference storage
so it can be cleaned of data.