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 Improvement
    • Status: Closed
    • Priority: Major 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
    • Rank:
      16820

      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.

        Activity

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

        Reopening, see the PULL request for details, sorry.

        Show
        Petr Škoda added a comment - Reopening, see the PULL request for details, sorry.
        Hide
        Helen Foster added a comment -

        Thanks Tim

        Show
        Helen Foster added a comment - Thanks Tim

          People

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

            Dates

            • Created:
              Updated:
              Resolved: