c8y(1)
π c8y β c8y devices services delete (yes that's the manual name, don't @ me)
okay bestie so you want to delete a service on a device in Cumulocity using c8y and you opened the manual page and it's giving "wall of flags." don't panic. i got you. it's literally just "yeet a service" with a whole lot of inherited options riding along π
πΈ NAME πΈ
c8y-devices-services-delete β Delete service. that's it. that's the whole vibe. β¨
π¦ SYNOPSIS π¦
c8y devices services delete [flags]
short, sweet, iconic. π
π DESCRIPTION π
It deletes an existing service. no cap, that's what it does. bye bye service π«Ά
π OPTIONS π
--device=[]β Device id (required for name lookup). so if you're gonna reference the service by name instead of id, you gotta tell it which device to look at, bestie. π-h,--help[=false]β help for delete. the classic. πΌ--id=[]β Service id or name (required) (accepts pipeline). required, so like... you literally have to pass it. and yes it eats piped input π--processingMode=""β Cumulocity processing mode. whatever mode you're in, it's valid. β¨
π§ OPTIONS INHERITED FROM PARENT COMMANDS π§
okay this is the long part but every single one matters, so buckle up buttercup π
--abortOnErrors=10β Abort batch when reaching specified number of errors. default is10, so it bails after ten oopsies. π--allowEmptyPipe[=false]β Don't fail when piped input is empty (stdin). so an empty pipe won't ruin your whole day πΈ--cache[=false]β Enable cached responses. speed things up πββοΈ--cacheBodyPaths=[]β Cache should limit hashing of selected paths in the json body. Empty indicates all values. π--cacheTTL="60s"β Cache time-to-live (TTL) as a duration, i.e.60s,2m. default is a whole minute β³-c,--compact[=false]β Compact instead of pretty-printed output when using json output. Pretty print is the default if output is the terminal. so it stays cute unless you say otherwise π--confirm[=false]β Prompt for confirmation. the "are you sure bestie" flag π--confirmText=""β Custom confirmation text. make it say whatever you want βοΈ--currentPage=0β Current page which should be returned. π--customQueryParam=[]β add custom URL query parameters. i.e.--customQueryParam 'withCustomOption=true,myOtherOption=myvalue'. so extra, i love it π₯--debug[=false]β Set very verbose log messages. for when you need to see everything π--delay="0ms"β delay after each request, i.e.5ms,1.2s. default0ms, no chill β±οΈ--delayBefore="0ms"β delay before each request, i.e.5ms,1.2s. default0msπ--dry[=false]β Dry run. Don't send any data to the server. pretend it happened, live your truth π«§--dryFormat="markdown"β Dry run output format. i.e.json,dump,markdownorcurl. default ismarkdownπ--examples[=false]β Show examples for the current command. love a self-documenting icon β--filter=[]β Apply a client side filter to response before returning it to the user. π§Ό--flatten[=false]β flatten json output by replacing nested json properties with properties where their names are represented by dot notation. nested? not on my watch πͺ-f,--force[=false]β Do not prompt for confirmation. Ignored when using--confirm. bold move, bestie π-H,--header=[]β custom headers. i.e.--header "Accept: value, AnotherHeader: myvalue"π¨--includeAll[=false]β Include all results by iterating through each page. all of it. every last one π-k,--insecure[=false]β Allow insecure server connections when using SSL. (yes it's insecure, that's the point, be careful) π¨-l,--logMessage=""β Add custom message to the activity log. leave a little note ποΈ--maxJobs=0β Maximum number of jobs.0= unlimited (use with caution!). and no i'm not joking, it says caution for a reason π--noAccept[=false]β Ignore Accept header will remove the Accept header from requests, however PUT and POST requests will only see the effect. π ββοΈ--noCache[=false]β Force disabling of cached responses (overwrites cache setting). π-M,--noColor[=false]β Don't use colors when displaying log entries on the console. monochrome moment π€--noLog[=false]β Disables the activity log for the current command. π€«--noProgress[=false]β Disable progress bars. no little bars, just vibes π--noProxy[=false]β Ignore the proxy settings. πͺ-n,--nullInput[=false]β Don't read the input (stdin). Useful if using in shell for/while loops. lifesaver fr fr π-o,--output="table"β Output format i.e.table,json,csv,csvheader. default'stableπ§Ύ--outputFile=""β Save JSON output to file (after select/view). πΎ--outputFileRaw=""β Save raw response to file (before select/view). πΏ--outputTemplate=""β jsonnet template to apply to the output. fancy π¨-p,--pageSize=5β Maximum results per page. default5, tiny page energy π£--progress[=false]β Show progress bar. This will also disable any other verbose output. π--proxy=""β Proxy setting, i.e.http://10.0.0.1:8080. π-r,--raw[=false]β Show raw response. This mode will forceoutput=jsonandview=off. no filter, just raw π₯©--retries=3β Max number of attempts when a failed http call is encountered. default3, it'll try again, it's persistent πͺ--select=[]β Comma separated list of properties to return. wildcards and globstar accepted, i.e.--select 'id,name,type,**.serialNumber'. choose your own adventure βοΈ--session=""β Session configuration. π--sessionMode=""β Override default session mode for a single command which would normally be disabled. ποΈ-P,--sessionPassword=""β Override session password. π€-U,--sessionUsername=""β Override session username. i.e.peterort1234/peter(with tenant). π€--silentExit[=false]β Silent status codes do not affect the exit code. π€--silentStatusCodes=""β Status codes which will not print out an error message. π€«--timeout="600s"β Request timeout duration, i.e.60s,2m. default's a whole600sβ°--totalPages=0β Total number of pages to get. π-v,--verbose[=false]β Verbose logging. loud and proud π’--view="auto"β Use views when displaying data on the terminal. Disable using--view off. defaultautoπ₯οΈ--withError[=false]β Errors will be printed on stdout instead of stderr. plot twist πͺοΈ--withTotalElements[=false]β Request Cumulocity to include the total elements in the response statistics under.statistics.totalElements(introduced in10.13). π’-t,--withTotalPages[=false]β Request Cumulocity to include the total pages in the response statistics under.statistics.totalPages. π--workers=1β Number of workers. default1, one hardworking little guy π
β¨ EXAMPLE β¨
like, actual receipts bestie π
$ c8y devices services delete --id 22222
Remove service
delete by id. clean. iconic. π
$ c8y devices services delete --device 11111 --id ntp
Remove service by name
delete by name β see why --device is required for name lookup? told you. π§
$ c8y devices services list --device 12345 | c8y devices services delete
Get service status (using pipeline)
pipeline moment!! list feeds straight into delete. that's the accepts pipeline bit doing its thing π°
π«Ά SEE ALSO π«Ά
c8y-devices-services(1) β go read the parent, it's the main character π
and that's the whole page, bestie. no notes. mwah π
sign-off era: this gem is dated Jan 1980 (yes, literally 1980, the manual page is vintage and we respect it) and it belongs to the c8y(1) manual. slay forever πβ¨
π¦ where this page comes from
- nixpkgs unstable: go-c8y-cli 2.56.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms