c8y(1)

πŸ“¦ version 2.56.1, in nixpkgs unstable

πŸ’… 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 is 10, 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. default 0ms, no chill ⏱️
  • --delayBefore="0ms" β€” delay before each request, i.e. 5ms, 1.2s. default 0ms πŸŒ™
  • --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, markdown or curl. default is markdown πŸ“
  • --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's table 🧾
  • --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. default 5, 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 force output=json and view=off. no filter, just raw πŸ₯©
  • --retries=3 β€” Max number of attempts when a failed http call is encountered. default 3, 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. peter or t1234/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 whole 600s ⏰
  • --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. default auto πŸ–₯️
  • --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 in 10.13). πŸ”’
  • -t, --withTotalPages[=false] β€” Request Cumulocity to include the total pages in the response statistics under .statistics.totalPages. πŸ“–
  • --workers=1 β€” Number of workers. default 1, 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