code: def delete_all_versions(self, model_name, obj_pk):
          
          if self.cache:
              for version in self.versions:
                  key = self.key_for(version, model_name, obj_pk)
                  self.cache.delete(key)
docs: Delete all versions of a cached instance.