# Imported Calendar Won't Delete

**URL:** <https://help.nextcloud.com/t/imported-calendar-wont-delete/108678>\
**Category:** ℹ️ Support\
**Tags:** nc20, calendar-app\
**Created:** [February 22, 2021, 6:17pm UTC](https://help.nextcloud.com/t/imported-calendar-wont-delete/108678 "2021-02-22T18:17:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve40](https://help.nextcloud.com/user_avatar/help.nextcloud.com/steve40/32/35102_2.png) [@Steve40](https://help.nextcloud.com/u/Steve40)\
**Post date:** [February 22, 2021, 6:17pm UTC](https://help.nextcloud.com/t/imported-calendar-wont-delete/108678/1 "2021-02-22T18:17:31Z")

</div>

I recently imported my Google Calendar using the Google Integration app. Worked beautifully, except that it tried to import an external calendar that I’m subscribed to. Now that calendar is stuck in the list. Can’t delete it, can’t rename it, can’t even change it’s position.

I don’t get anything particularly interesting (I don’t think) in NextCloud logs… looks related to the contacts, not the calendar.

```
{"reqId":"asdfasdfasdfasdf@asdfasdfasdf","level":1,"time":"2021-02-22T17:21:54+00:00","remoteAddr":" ***.***. ***.***","user":"my_username","app":"no app in context","method":"PROPFIND","url":"/remote.php/webdav/.Contacts-Backup/2021-02-21_17-02-49.vcf","message":"Deprecated event type for {\"[object] (OCP\\SabrePluginEvent)\":{\"*statusCode\":200,\"*message\":\"\",\"*server\":{\"[object] (OCA\\DAV\\Connector\\Sabre\\Server)\":{\"tree\":\"[object] (OCA\\DAV\\Connector\\Sabre\\ObjectTree)\",\"*baseUri\":\"/remote.php/webdav/\",\"httpResponse\":\"[object] (Sabre\\HTTP\\Response)\",\"httpRequest\":\"[object] (Sabre\\HTTP\\Request)\",\"sapi\":\"[object] (Sabre\\HTTP\\Sapi)\",\"*plugins\":[],\"transactionType\":null,\"protectedProperties\":{\"...\":\"Over 20 items, aborting normalization\"},\"debugExceptions\":false,\"resourceTypeMapping\":[],\"enablePropfindDepthInfinity\":true,\"xml\":\"[object] (Sabre\\DAV\\Xml\\Service)\",\"*listeners\":{\"...\":\"Over 20 items, aborting normalization\"},\"*wildcardListeners\":[],\"*listenerIndex\":[],\"*logger\":null}},\"Symfony\\Contracts\\EventDispatcher\\EventpropagationStopped\":false}}: null","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.15.0","version":"20.0.7.1","id":"asgfsdfgsdfgsdfg"}

```

However, I’m using DAVx5 to sync it with my phone. If I try to delete it from within DAVx5, I get the following error, which leads me to believe that the slashes in the calendar name are confusing the database, but this is far from my field of expertise. Am I on the right track here? and if so, how do I resolve this?

```
HTTP REQUEST Request{method=DELETE, url=https://my.url.com/remote.php/dav/calendars/my_username/https://www.external_calendar_url.com/calendar/ical/private_info.ics%3f%private_info%20(Google%20Calendar%20import)/, headers=[Accept-Encoding:br,gzip]}

HTTP RESPONSE Response{protocol=h2, code=404, message=, url=https://my.url.com/remote.php/dav/calendars/my_username/https://www.external_calendar_url.com/calendar/ical/private_info.ics%3f%private_info%20(Google%20Calendar%20import)/} <?xml version="1.0" encoding="utf-8"?> <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"> <s:exception>Sabre\DAV\Exception\NotFound</s:exception> <s:message>Node with name 'https:' could not be found</s:message></d:error>

```

![Capture](https://help.nextcloud.com/uploads/default/original/3X/4/3/43eac28738dd770620b8d05d28229eed5cb4eb66.png)  
 ![Capture2](https://help.nextcloud.com/uploads/default/original/3X/3/b/3b8e4bf53ec09e5793aaff32ccecb40d888131a6.png)  
 ![Capture3](https://help.nextcloud.com/uploads/default/original/3X/a/b/ab10764e1338a506bae09658bc78600ab28ea9c6.png)

---

<div class="post-metadata">

**Author:** ![normanos](https://help.nextcloud.com/letter_avatar/normanos/32/5_5575768a8748004e209b776fc1b2916d.png) [@normanos](https://help.nextcloud.com/u/normanos)\
**Post date:** [November 28, 2022, 12:23pm UTC](https://help.nextcloud.com/t/imported-calendar-wont-delete/108678/2 "2022-11-28T12:23:56Z")

</div>

Wish to bump this. Have same issue with NC 25.01. Unable to delete non existing calendar.  
Perfectly same situation. Have calendar, which does not exist anymore.  
Getting same error.

---

<div class="post-metadata">

**Author:** ![marvhh](https://help.nextcloud.com/letter_avatar/marvhh/32/5_5575768a8748004e209b776fc1b2916d.png) [@marvhh](https://help.nextcloud.com/u/marvhh)\
**Post date:** [January 19, 2023, 7:52am UTC](https://help.nextcloud.com/t/imported-calendar-wont-delete/108678/3 "2023-01-19T07:52:33Z")

</div>

I got the exact same problem, can i provice any information to fix this?

---

<div class="post-metadata">

**Author:** ![LAfricain](https://help.nextcloud.com/user_avatar/help.nextcloud.com/lafricain/32/50087_2.png) [@LAfricain](https://help.nextcloud.com/u/LAfricain)\
**Post date:** [March 27, 2023, 1:19pm UTC](https://help.nextcloud.com/t/imported-calendar-wont-delete/108678/4 "2023-03-27T13:19:19Z")

</div>

I have the same ennoying issue.

---

<div class="post-metadata">

**Author:** ![Dennis\_Yaskevich](https://help.nextcloud.com/user_avatar/help.nextcloud.com/dennis_yaskevich/32/50688_2.png) [@Dennis\_Yaskevich](https://help.nextcloud.com/u/Dennis_Yaskevich)\
**Post date:** [November 9, 2023, 5:38pm UTC](https://help.nextcloud.com/t/imported-calendar-wont-delete/108678/5 "2023-11-09T17:38:27Z")

</div>

The last comment in this issue describes how to manually solve this by editing the database

> <https://github.com/nextcloud/calendar/issues/2911>
>
> \### Steps to reproduce
> 1. Unknown. I don't know how it happened in the first pl…ace
> 2.
> 3.
> 
> \### Expected behaviour
> When I delete a calendar, it should be deleted from the database.
> \### Actual behaviour
> I recently imported my Google Calendar using the Google Integration app. Worked beautifully, except that it tried to import an external calendar that I’m subscribed to. Now that calendar is stuck in the list. It can't be deleted, can't be renamed, can’t even be repositioned. The calendar does not display anything.
> 
> I don’t get anything particularly interesting (I don’t think) in NextCloud logs, however when I try to delete it through DAVx5, the error below is given. It looks to me that the calendar name is that of the URL of the external calendar, and the "/" in the name is confusing the database. However, this is far from my area of expertise, so I could be way off. 
> 
> Has anyone seen this before? Is there a solution that would allow me to delete this calendar for good?
> 
> Thanks.
> 
> \### Calendar app
> \*\*Calendar app version:\*\* 2.1.3
> 
> \*\*CalDAV-clients used:\*\* DAVx5
> 
> \### Client configuration
> \*\*Browser:\*\* Firefox, Chrome, Brave
> 
> \*\*Operating system:\*\* Windows, Android
> 
> \### Server configuration
> 
> \*\*Operating system\*\*: Ubuntu 14
> 
> \*\*Web server:\*\* Apache 
> 
> \*\*Database:\*\* SQLite
> 
> \*\*PHP version:\*\* 7.2
> 
> \*\*Nextcloud Version:\*\* 20.0.7
> 
> \*\*Updated from an older installed version or fresh install:\*\* Updated
> 
> \*\*List of activated apps:\*\* Accessibility 1.6.0, Activity 2.13.4, Calendar 2.1.3, Collaborative tags 1.10.0, Contacts 3.4.3, Contacts Interaction 1.1.0, Dashboard 7.0.0, Deleted files 1.10.1, Federation 1.10.1,
> File sharing 1.12.2, First run wizard 2.9.0, Flow Upload 1.1.2, Log Reader 2.5.0, Mail 1.6.0, Monitoring 1.10.0, Nextcloud announcements 1.9.0, Notes 4.0.2, Notifications 2.8.0,
> Password policy 1.10.1, PDF viewer 2.0.1, Photos 1.2.3, Privacy 1.4.0, Recommendations 0.8.0, Right click 0.17.0, Share by mail 1.10.0, Support 1.3.0, Text 3.1.0, Theming 1.11.0,
> Update notification 1.10.0, Usage survey 1.8.0, User status 1.0.1 Versions 1.13.0, Video player 1.9.0, Weather status
> \`\`\`
> If you have access to your command line run e.g.:
> sudo -u www-data php occ app:list
> from within your instance's installation folder
> \`\`\`
> 
> \*\*Nextcloud configuration:\*\*
> \`\`\`
> \<?php
> $CONFIG = array (
> 'instanceid' =\> 'asdf'
> 'passwordsalt' =\> 'asdf'
> 'secret' =\> 'asdf'
> 'trusted\_domains' =\> 
> array (
> 0 =\> 'my.domain.com',
> ),
> 'datadirectory' =\> '/home/my\_username/my.domain.com/data',
> 'dbtype' =\> 'sqlite3',
> 'version' =\> '20.0.7.1',
> 'overwrite.cli.url' =\> 'http://my.domain.com',
> 'installed' =\> true,
> 'mail\_from\_address' =\> 'noreply',
> 'mail\_smtpmode' =\> 'smtp',
> 'mail\_sendmailmode' =\> 'smtp',
> 'mail\_domain' =\> 'my.domain.com',
> 'mail\_smtpauth' =\> 1,
> 'mail\_smtpauthtype' =\> 'LOGIN',
> 'mail\_smtphost' =\> 'asdf',
> 'mail\_smtpname' =\> 'asdf',
> 'mail\_smtppassword' =\> 'asdf',
> 'mail\_smtpsecure' =\> 'ssl',
> 'mail\_smtpport' =\> '465',
> 'maintenance' =\> false,
> 'theme' =\> '',
> 'loglevel' =\> 1,
> );
> 
> \`\`\`
> 
> \### Logs
> \#### Web server error log (e.g. /var/log/apache)
> \`\`\`
> Don't have access
> \`\`\`
> 
> \#### Log file (data/nextcloud.log)
> \`\`\`
> \[PHP\] Error: PHP Startup: memcached.sess\_lock\_wait and memcached.sess\_lock\_max\_wait are deprecated. Please update your configuration to use memcached.sess\_lock\_wait\_min, memcached.sess\_lock\_wait\_max and memcached.sess\_lock\_retries at Unknown#0
> 
> at 2021-02-23T20:46:10+00:00
> 
> \[no app in context\] Info: Deprecated event type for OCP\\IDBConnection::CHECK\_MISSING\_COLUMNS: Symfony\\Component\\EventDispatcher\\GenericEvent is used
> 
> GET /index.php/settings/ajax/checksetup
> from 70.73.65.251 by asdfat 2021-02-23T20:45:58+00:00
> 
> \[no app in context\] Info: Deprecated event type for {"\[object\] (OCP\\SabrePluginEvent)":{"\*statusCode":200,"\*message":"","\*server":{"\[object\] (OCA\\DAV\\Connector\\Sabre\\Server)":{"tree":"\[object\] (OCA\\DAV\\Connector\\Sabre\\ObjectTree)","\*baseUri":"/remote.php/webdav/","httpResponse":"\[object\] (Sabre\\HTTP\\Response)","httpRequest":"\[object\] (Sabre\\HTTP\\Request)","sapi":"\[object\] (Sabre\\HTTP\\Sapi)","\*plugins":\[\],"transactionType":null,"protectedProperties":{"...":"Over 20 items, aborting normalization"},"debugExceptions":false,"resourceTypeMapping":\[\],"enablePropfindDepthInfinity":true,"xml":"\[object\] (Sabre\\DAV\\Xml\\Service)","\*listeners":{"...":"Over 20 items, aborting normalization"},"\*wildcardListeners":\[\],"\*listenerIndex":\[\],"\*logger":null}},"Symfony\\Contracts\\EventDispatcher\\EventpropagationStopped":false}}: null
> 
> PROPFIND /remote.php/webdav
> from 70.73.65.251 by at 2021-02-23T20:45:56+00:00
> 
> 
> 
> 
> 
> 
> 
> 
> 
> \`\`\`
> 
> \#### Browser log
> \`\`\`
> Insert your browser log here, this could for example include:
> 
> a) The javascript console log
> b) The network log
> c) ...
> \`\`\`
> \#### DAVx5 Returned Error Code
> \`\`\`
> HTTP REQUEST Request{method=DELETE, url=https://my.url.com/remote.php/dav/calendars/my\_username/https://www.external\_calendar\_url.com/calendar/ical/private\_info.ics%3f%private\_info%20(Google%20Calendar%20import)/, headers=\[Accept-Encoding:br,gzip\]}
> 
> HTTP RESPONSE Response{protocol=h2, code=404, message=, url=https://my.url.com/remote.php/dav/calendars/my\_username/https://www.external\_calendar\_url.com/calendar/ical/private\_info.ics%3f%private\_info%20(Google%20Calendar%20import)/} \<?xml version="1.0" encoding="utf-8"?\> \<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"\> \<s:exception\>Sabre\\DAV\\Exception\\NotFound\</s:exception\> \<s:message\>Node with name 'https:' could not be found\</s:message\>\</d:error\>
> \`\`\`

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 3:52pm UTC](https://help.nextcloud.com/t/imported-calendar-wont-delete/108678/6 "2024-12-14T15:52:28Z")

</div>


