add delete function for cat, subj & file