Results 1 to 2 of 2
  1. #1
    Join Date
    May 2004

    Unanswered: deleting txt files in a query

    Is there a way to get mysql scripts to delete txt files on a server. I use a select into outfile query to create txt files with data from my database. I would also like to be able to delete those with a query as well. Any ideas?

  2. #2
    Join Date
    Jul 2004
    Dundee, Scotland
    you wouldn't use MySQL to delete a text file on a server (to my knowledge no such functionality exists within MySQL to do this). You'd use either an operating system command in the script (DOS or Linux) or a function in a language like PHP or PERL.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts