Hello Gabriela, we also had this experience, but we solved the problem as follows. We wrote a script that sets the document to invalid and creates a new version of the DIS in SAP. However, when creating a new version, at least in our case, the content of the DIS set to invalid is transferred, which we did not want.
However, the DIS can be completely deleted using the BAPI - DOCUMENT_DELETE which means that the DIS has to be recreated, but it is then empty. .
Regards, Matthias
Translated with DeepL.com (free version)
------------------------------
Matthias Lautenschläger
PLM Assistant
GSI Helmholtzzentrum für Schwerionenforschung GmbH
Darmstadt
------------------------------