Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-26847

New file API method file_storage::delete_area_files_select for deleting lots of files more efficiently

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.2
    • Fix Version/s: 2.0.3
    • Component/s: Files API
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      In the question code, I would like to be able to delete a files en-masse, where the itemid comes from a subquery.

      Sam has a similar requirement to bulk delete in ForumNG.

      Therefore, I have implemented this method.

        Gliffy Diagrams

          Attachments

            Activity

            Show
            timhunt Tim Hunt added a comment - Possible implementation at https://github.com/timhunt/Moodle-Question-Engine-2/commit/523afba4b7c3364211b08f49728f67928916932d
            Show
            timhunt Tim Hunt added a comment - Cleaned up fix: https://github.com/timhunt/moodle/compare/master...MDL-26847
            Hide
            skodak Petr Skoda added a comment -

            Reopening, see the PULL request for details, sorry.

            Show
            skodak Petr Skoda added a comment - Reopening, see the PULL request for details, sorry.
            Hide
            tsala Helen Foster added a comment -

            Thanks Tim

            Show
            tsala Helen Foster added a comment - Thanks Tim

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/May/11