How can i delete objects from CLI if those are having dependencies?

How can i delete data point from CLI if data point having dependencies?

Beginner Asked on March 5, 2020 in Tools & Utilities.
Add Comment
1 Answer(s)
Below is the syntax to delete an object through CLI command.
Syntax: dicmd delete [-u userName -w userPassword] -p ProjectName [-l LayerName] [-g GroupName] [-o DOBJ|DATAPOINT|NSEQ|EXPR|UDF|DATASUBFLOW|DATAFLOW|DATASTREAM|JOBFLOW|DATACONNECT|SCHTASK|SCHCAL|SCHEMAIL|SCHFILE|SCHEVENT|SCHEDULER|PROJECTPARAMS] [-t NZ|TD|OR|FF|PG|DB|HV|MS|BI|CO|SF|HD|JS|HB|XD|SP|TW|FB|SK|JM|KK|CS|SY|SS|TS|SN|MY|BQ|RT|AV|PR|AZ|GC|RS|DR|AU|OF|DC|DX|ES|GA|GW|PS|MD|BS|AD] -n ObjectName [-c ConnNm] [-f ForceDelete]
-> If object is having dependency, “-f” argument should have values as “Yes” to Force Delete the object. It will delete the object along with dependent objects. (-f is Yes)
e.g. dicmd delete -u Username -w Password -p Project_Name -g Group_Name -o DATAPOINT -t NZ -n SAMPLE_DP -f Yes

-> To delete using CURL command user should use “forcedelete=Yes” argument to Force delete the object.
e.g. curl “http://172.40.9.120:9600/diyotta-rest/delete?project=Project_Name&group=Group_Name&objecttype=DATAPOINT&dbtype=NETEZZA&object=SAMPLE_DP&forcedelete=Yes” -H  “Authorization:Og0ayD/FXGZz64cmqiq90Q==”

Expert Answered on March 10, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.