handle files deletion