public function remove_files() {
        $fs = get_file_storage();
        $files = $fs->get_external_files($this->id);
        foreach ($files as $storedfile) {
            $storedfile->delete();
        }
    }
public function remove_files() {
        $fs = get_file_storage();
        $files = $fs->get_external_files($this->id);
        foreach ($files as $storedfile) {
            $storedfile->delete();
        }
    }
public function remove_files ( ) { $ fs = get_file_storage ( ) ; $ files = $ fs -> get_external_files ( $ this -> id ) ; foreach ( $ files as $ storedfile ) { $ storedfile -> delete ( ) ; } }
Find all external files linked to this repository and delete them.
Find all external files linked to this repository and delete them .