Describe the issue
When a submission is cancelled, it is intended that all of its artifacts will be removed. This is not done correctly now. The code in ietf.submit.utils.remove_staging_files() is called with the list of extensions in submission.file_types and only these files are removed. However, this list only includes files that the submitter uploaded - any files generated by datatracker are left over. This often includes .txt and I think always includes .html.
This will likely be OBE if #4334 is resolved in a way that directly links submission artifacts to the Submission object.
Code of Conduct
Describe the issue
When a submission is cancelled, it is intended that all of its artifacts will be removed. This is not done correctly now. The code in
ietf.submit.utils.remove_staging_files()is called with the list of extensions insubmission.file_typesand only these files are removed. However, this list only includes files that the submitter uploaded - any files generated by datatracker are left over. This often includes.txtand I think always includes.html.This will likely be OBE if #4334 is resolved in a way that directly links submission artifacts to the
Submissionobject.Code of Conduct