We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fb9abc commit 54e76c0Copy full SHA for 54e76c0
qiita_db/metadata_template/prep_template.py
@@ -272,6 +272,11 @@ def delete(cls, id_):
272
"Cannot remove prep template %d because it has an artifact"
273
" associated with it" % id_)
274
275
+ # artifacts that are archived are not returned as part of the code
276
+ # above and we need to clean them before moving forward
277
+ for aa in self.archived_artifacts():
278
+ qdb.artifact.Artifact.delete(aa.id)
279
+
280
# Delete the prep template filepaths
281
sql = """DELETE FROM qiita.prep_template_filepath
282
WHERE prep_template_id = %s"""
0 commit comments