Thank you for contacting the Google Cloud Community.
There seems to be a discrepancy between the documentation and actual behavior regarding deleting data using delete/delete_file.txt in Vertex AI Vector Search. Here are some possible explanations and solutions:
1. Verify and Adjust File Format:
Open delete/delete_file.txt in a text editor.
Ensure each line contains only the ID of a vector to be deleted (e.g., one ID per line).
Remove any leading or trailing spaces or characters.
Save the file with this corrected format.
2. Separate Update and Deletion:
Update your index with the new data without including the delete/delete_file.txt file.
After a successful update, trigger a separate process to delete specific vectors using their IDs. You can achieve this through the Vertex AI Client Libraries or a custom script.
The Client Libraries offer functionalities for deleting individual vectors using their IDs. Refer to the documentation for specific methods.