working on delete file functionality