Do not delete media storage files for external version
@@ -317,7 +317,8 @@ class Version(models.Model):
args=[self.get_artifact_paths()],
)
- # Remove build artifacts from storage
+ # Remove build artifacts from storage if the version is not external
+ if self.type != EXTERNAL:
storage_paths = self.get_storage_paths()
tasks.remove_build_storage_paths.delay(storage_paths)
