In Master Data Services, a soft delete is the result of removing a member via the MDS UI or the Excel add-in. What this means is that the member isn't actually deleted, it's just a new state that the record acquires. This mechanism allows the recovering of a certain member by reverting the transaction where the delete occurred.
But in order to actually execute the delete, we must first find out which records are in that state.
Master Data Services supporting database allows us to find that, via the tables that actually support those entities. We can follow this procedure to find those records:
We start of by finding our Model identifier in the mdm.tblEntity table:
[mdm].[tblModel] WHERE Name = '<MODEL_NAME>'
Then we look at the entities table to get our entity internal identifier by using the ID we got on the first step and the entities name:
[mdm].[tblEntity] WHERE Name = '<ENTITY_NAME>' and Model_ID = <MODEL_ID>
In the previous step we got a column called EntityTable which has the actual name of the table containing the entity's records;
All the records with a Status_ID = 2 on that table, are soft-deleted members;
Now you can use entity based staging to remove them.
I hope that the information on these pages is valuable to you. Your use of the information contained in these pages, however, is at your sole risk. All information on these pages is provided "as -is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by Ezequiel. Further, Ezequiel shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.