Skip to content

[C2] Delete unused documents when course deleted #6372

Open
@NicoDucou

Description

@NicoDucou
Member

In Chamilo 2 when deleting a course it deletes all the registries in the database.
But the files in var/upload/resource are still present.
It is good because resource could be used in many different courses.
So when deleting a course we should check if the resource_file that was used in a course do not have anymore resource_link associated to it then the resource_file registry should be deleted and the file on the disc as well to avoid living unused resources and files.

Activity

added this to the 2.0 milestone on Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @NicoDucou

        Issue actions

          [C2] Delete unused documents when course deleted · Issue #6372 · chamilo/chamilo-lms