delete file function added to database