How to remove folder structure in MDS
918216May 16 2012 — edited Jul 25 2013Hi,
I want to remove folders including files from MDS. This is my folder structure in MDS:
1 apps
1.1 com
1.1.1 wsdl
1.1.1.1 ...
1.2 xsd
1.2.1 ...
2 deployed-composites
3 soa
"apps", "deployed-composites" and "soa" are there to begin with. "com" and "xsd" are folders that were created when I deployed my mds-jar. I now want to remove "com" and "xsd" including all of their contents.
I have found two wlst commands:
- deleteMetadata: "Deletes the selected documents from the application repository". This seems to mean that it can only delete files, not folders. At least, that's all I can do when executing the command.
- sca_removeSharedData: "Removes a top-level shared data folder". But what is a "top-level shared data folder"?? I've tried to write:
sca_removeSharedData('http://k75830:21840','xsd','weblogic','weblogic11g')
But I get the error:
SEVERE: Problem in sending HTTP request to the server. Please make sure the server is up and/or check standard HTTP response code for 404
---->Response code=404, error:null
Is "xsd" not a top-level folder or is there some other error?
In this blog post they suggest that I should be able to remove a folder under /apps:
http://victor-jan.blogspot.se/2012_03_25_archive.html
But here they seem to be removing the entire /apps folder:
http://yatanveersingh.blogspot.se/2011/07/mds-implementation-in-oracle-soa-11g.html
Since /apps seems to be an important folder where all mds deployed files end up I'm not too keen on removing it. Does anyone know how to remove folders in MDS or is this not possible??
I'm using SOA Suite 11.1.1.5.
Thanks in advance!
Kerstin