delete old embeddings when forcing rescans
@@ -1073,6 +1073,10 @@ class Client(Interface):
# Force complete scan
if force:
logger.debug('Force complete scan')
+ # Clean up discoveries and embeddings for this repo
+ # embeddings must be deleted before discoveries since they
+ # reference a discovery_id
+ self.delete_embeddings(repo_url)
self.delete_discoveries(repo_url)
from_timestamp = 0
