Skip to content

Commit 097ed89

Browse files
mattianbackportbot[bot]
authored andcommitted
admin_manual: add occ command dav:delete-calendar
Document occ command dav:delete-calendar introduced in Nextcloud 22. See nextcloud/server#26421 Signed-off-by: Mattia Narducci <mattianarducci1@gmail.com>
1 parent cd09629 commit 097ed89

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

admin_manual/configuration_server/occ_command.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ A set of commands to create and manage addressbooks and calendars::
435435
dav
436436
dav:create-addressbook Create a dav addressbook
437437
dav:create-calendar Create a dav calendar
438+
dav:delete-calendar Delete a dav calendar
438439
dav:list-calendars List all calendars of a user
439440
dav:move-calendar Move a calendar from a user to another
440441
dav:remove-invalid-shares Remove invalid dav shares
@@ -456,6 +457,19 @@ This example creates a new calendar for molly::
456457

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

460+
``dav:delete-calendar [--birthday] [-f|--force] <uid> [<name>]`` deletes the
461+
calendar named ``name`` (or the birthday calendar if ``--birthday`` is
462+
specified) of the user ``uid``. You can use the force option ``-f`` or
463+
``--force`` to delete the calendar instead of moving it to the trashbin.
464+
465+
This example will delete the calendar mollycal of user molly::
466+
467+
sudo -u www-data php occ dav:delete-calendar molly mollycal
468+
469+
This example will delete the birthday calendar of user molly::
470+
471+
sudo -u www-data php occ dav:delete-calendar --birthday molly
472+
459473
``dav:lists-calendars [user]`` will display a table listing the calendars for a given user.
460474
This example will list all calendars for user annie::
461475

0 commit comments

Comments
 (0)