clockify-cli delete

clockify-cli delete

Delete time entry(ies), use id “current” to apply to time entry in progress

Synopsis

Delete time entries

If you want to delete the current (running) time entry you can use “current” instead of its ID.

Important: this action can’t be reverted, once the time entry is deleted its ID is lost.

clockify-cli delete { <time-entry-id> | current | last }... [flags]

Examples

# trying to delete a time entry that does not exist, or from other workspace
$ clockify-cli delete 62af70d849445270d7c09fbc
delete time entry "62af70d849445270d7c09fbc": TIMEENTRY with id 62af70d849445270d7c09fbc doesn't belong to WORKSPACE with id cccccccccccccccccccccccc (code: 501)

# deleting the running time entry
$ clockify-cli delete current
# no output

# deleting the last time entry
$ clockify-cli delete last
# no output

# deleting multiple time entries
$ clockify-cli delete 62b5b51085815e619d7ae18d 62b5d55185815e619d7af928
# no output

Options

  -h, --help   help for delete

Options inherited from parent commands

      --allow-name-for-id           allow use of project/client/tag's name when id is asked
  -i, --interactive                 will prompt you to confirm/complement commands input before executing the action 
  -L, --interactive-page-size int   will set how many items will be shown on interactive mode (default 7)
      --log-level string            { none | debug | info } set log level (default "none")
  -t, --token string                clockify's token
                                    Can be generated here: https://clockify.me/user/settings#generateApiKeyBtn
  -u, --user-id string              user id from the token
  -w, --workspace string            workspace to be used

SEE ALSO

  • clockify-cli - Allow to integrate with Clockify through terminal
Auto generated by spf13/cobra on 29-Mar-2024