METADATA_DELOBJ

Deletes the first object that matches the specified URI.

Syntax

rc = METADATA_DELOBJ(uri);

Required Argument

uri (in)
specifies a Uniform Resource Identifier.

Return Values

0
Successful completion
-1
Unable to connect to the metadata server
-2
The deletion was unsuccessful; see the SAS log for details
-3
No objects match the URI

Example

options metaserver="a123.us.company.com"
	metaport=8561
	metauser="myid"
	metapass="mypassword"
	metarepository="myrepos";

data _null_;

    rc=metadata_delobj("omsobj:Property?@Name='My Object'");
    put rc=;

run;