FEATURE REQUEST (Ability to delete/modify files created by using SELECT INTO OUTFILE)

At the moment, for security reasons in MySQL implemented the ability to create files only through SELECT INTO OUTFILE.
The ability to overwrite or delete files is missing. In the case of a large number of files you create, implementation of removal procedure possible only in non MySQL way.
It is proposed to implement the safe removal option for OUTFILEs. For example:

  1. Allow only delete the files that exist in directories tmpdir, thus isolating the OS from the database.
  2. Implement registration procedure for all files created using the OUTFILE, respectively delete and change only files passed the registration procedure.
  3. Create a single global parameter specifies where OUTILEs will be created, and allows you to manipulate files only within this parameter.
  4. Create a global parameter that will indicate the allowable operations for OUTFILEs (create, change, delete)
    In MySQL really lacking quality file manipulation procedures.

Forum is not the right place for requesting new MySQL/Percona Server features, unless you wish to discuss the idea first.
A FR should be made first via https://bugs.mysql.com/ and if it gets accepted, it will reach probably the widest community as it will be also picked up by Percona Server for MySQL.
If not accepted there, you may still try for Percona Server only via https://bugs.launchpad.net/percona-server/ and/or via MariaDB https://mariadb.com/kb/en/mariadb/reporting-bugs/