How to Remove Contents
from MDS Repository
There are two Approaches you can remove contents from MDS.
Approach 1: Offline mode
Approach 2: Online mode
Steps for Approach 1: Offline mode
Step1 : Run wlst.cmd from the following location
Oracle_Home\Oracle_SOA1\common\bin
Step 2: At wlst command prompt (wls:/offline>) execute the
following
sca_removeSharedData('http://yourhost:yourport', 'directory', 'adminuser', 'adminpassword')
sca_removeSharedData('http://localhost:8001',
'common_Artifacts', 'weblogic', 'welcome1')
Here Common_Artifacts is MDS
folder which I have taken as example.
Steps for Approach 2: Online mode
Step1 : Run wlst.cmd from the following location
Oracle_Home\Oracle_SOA1\common\bin
Step
2: Connect to SOA server
At wlst command
prompt (wls:/offline>) execute the following
connect('adminuser',
'adminpassword', 't3://hostname:port')
ex:
connect('weblogic', 'weblogic1', 't3://localhost:8001')
ex:
connect('weblogic', 'weblogic1', 't3://localhost:8001')
Step
2: Remove Content from MDS
deleteMetadata(application='soa-infra',server='soa_server1',docs='/apps/common_Artifacts')