Skip to content

Commit

Permalink
admin_manual: add occ command dav:delete-calendar
Browse files Browse the repository at this point in the history
Document occ command dav:delete-calendar introduced in Nextcloud 22.

See nextcloud/server#26421

Signed-off-by: Mattia Narducci <[email protected]>
  • Loading branch information
mattian authored and backportbot[bot] committed Oct 13, 2021
1 parent cd09629 commit 097ed89
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions admin_manual/configuration_server/occ_command.rst
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ A set of commands to create and manage addressbooks and calendars::
dav
dav:create-addressbook Create a dav addressbook
dav:create-calendar Create a dav calendar
dav:delete-calendar Delete a dav calendar
dav:list-calendars List all calendars of a user
dav:move-calendar Move a calendar from a user to another
dav:remove-invalid-shares Remove invalid dav shares
Expand All @@ -456,6 +457,19 @@ This example creates a new calendar for molly::

Molly will immediately see these in the Calendar and Contacts apps.

``dav:delete-calendar [--birthday] [-f|--force] <uid> [<name>]`` deletes the
calendar named ``name`` (or the birthday calendar if ``--birthday`` is
specified) of the user ``uid``. You can use the force option ``-f`` or
``--force`` to delete the calendar instead of moving it to the trashbin.

This example will delete the calendar mollycal of user molly::

sudo -u www-data php occ dav:delete-calendar molly mollycal

This example will delete the birthday calendar of user molly::

sudo -u www-data php occ dav:delete-calendar --birthday molly

``dav:lists-calendars [user]`` will display a table listing the calendars for a given user.
This example will list all calendars for user annie::

Expand Down

0 comments on commit 097ed89

Please sign in to comment.