added delete file functionality with user specific and check option