public function delete_attachments() {
        $fs = get_file_storage();
        $fs->delete_area_files(SYSCONTEXTID, 'blog', 'attachment', $this->id);
        $fs->delete_area_files(SYSCONTEXTID, 'blog', 'post', $this->id);
    }
public function delete_attachments() {
        $fs = get_file_storage();
        $fs->delete_area_files(SYSCONTEXTID, 'blog', 'attachment', $this->id);
        $fs->delete_area_files(SYSCONTEXTID, 'blog', 'post', $this->id);
    }
public function delete_attachments ( ) { $ fs = get_file_storage ( ) ; $ fs -> delete_area_files ( SYSCONTEXTID , 'blog' , 'attachment' , $ this -> id ) ; $ fs -> delete_area_files ( SYSCONTEXTID , 'blog' , 'post' , $ this -> id ) ; }
Deletes all the user files in the attachments area for an entry

@return void
Deletes all the user files in the attachments area for an entry