Contacts: Contact groups can't be deleted

Created on 12 Jul 2019  ·  22Comments  ·  Source: nextcloud/contacts

There's is no way to delete a contact group after it was created. Create a contact, add a new group. Remove the group after saving from the contact. Now the group is listed in the left sidepanel and there's no way to delete it.

1. to develop enhancement

Most helpful comment

When I imported my contacts from google, they all had the group myContacts, I'd really like to be able to delete that group without having to go through each contact one by one.

All 22 comments

Can't delete it manually, but if there is no contact in the group it will be removed automatically.
Seems to work as should?

Hi!
Until we get #213, adding such thing will trigger one request per contact within the group as the current way is really not ok (performance speaking)

I don't want to add a functionnality that will break the user experience :/

So until then, we'll have to wait! :)

Re opening for search purpose

Having the same issue. Created group with typo.. and then group is empty and there is no possibility to delete it :)

@ronnicek you can still remove it on the contacts that have it :)
Just uncheck it from the groups dropdown and write a new one

I am able to do that of course, but then the group with typo is still there in the list of groups :)

@ronnicek it means at least one contact still uses the old group :)

@skjnldsv 🤦‍♂️. Really. Sorry then, solved for me (after refresh) :)

When I imported my contacts from google, they all had the group myContacts, I'd really like to be able to delete that group without having to go through each contact one by one.

@bendem
What worked for me is to export as .vcf from Google and with any text editor of your choice replace the corresponding tag in the file with a blank line. Wish it was easier, but works until this gets implemented.

After #1687 it might be easier to implement such feature :)

@skjnldsv man_facepalming. Really. Sorry then, solved for me (after refresh) :)

Had to come here to see how this was done. Doesn't seem very intuitive. How about add a trash can icon beside the group if it is created, and then abandoned? In my case, I named the group incorrectly and wanted to rename, but then thought I couldn't rename or delete the group!

It is a small change, but feels like it makes more sense to end users.

Doesn't seem very intuitive. How about add a trash can icon beside the group if it is created, and then abandoned? In my case, I named the group incorrectly and wanted to rename, but then thought I couldn't rename or delete the group!

100% agree on :+1:
Like I said, any kind of batch modification of contacts (groups) will be easier after #1687 :wink:

After #1687 it might be easier to implement such feature :)

@skjnldsv man_facepalming. Really. Sorry then, solved for me (after refresh) :)

Hmmm... for me, I cannot uncheck the group from the last member of it. I mean: I can, but after refresh, it's still member! So the group remains at size 1 an cannot be deleted. Buggy.

@krafel said:

after refresh, it's still member! So the group remains at size 1 an cannot be deleted. Buggy.

Same issue for me with Nextcloud 20.0.0, Contacts 3.4.0.

Suppose the contact "Alice" is the only contact in the groups "Friends" and "Colleagues", then Alice can be successfully removed from "Friends" only if the removal is performed whilst viewing Alice in the "Colleagues" or "All contacts" sections, but not when viewing Alice in the "Friends" section. It seems that if we remove Alice from "Friends" whilst viewing her in "Friends", then the act of the contact disappearing from the list we're viewing somehow interferes with the intended act of removing her from the group.

+1 (I'm concerned by this anti-functionnality)

Unbelievable that such a simple functionality is missing and no progress is made for such a long time.

Looks like #1687 was merged 6 months ago. Any word on this?

Fyi, I just created a group in contacts which was misspelled, and can neither rename nor remove it in spite of it being empty. I'm tempted to try and remove it from the database manually, but past efforts to manually modify app data have been considerably less than encouraging.

Looks like #1687 was merged 6 months ago. Any word on this?

No time for this unfortunately. Though the functionnality is far more easier to add now.
Anyone willing to dive into this, I can point and assist a bit! :rocket:

Anyone willing to dive into this, I can point and assist a bit!

Can you point us in the right direction? :green_heart:

Of course :)

Each contact needs to be edited for this.
There is already a similar process when we batch-add contacts to a group.
Doing the exact opposite would delete the group:
https://github.com/nextcloud/contacts/blob/master/src/views/Processing/AddToGroupView.vue

Magic happens here:
https://github.com/nextcloud/contacts/blob/c23a7fdf36d52af269b0593cbaf363fe860c0245/src/views/Contacts.vue#L761-L810

The selection here would be all the contacts of the group (you can get them with group.contact and then map the contacts keys to this.contacts
image

https://github.com/nextcloud/contacts/blob/f44028131344636e45c5158cc13ccbe4edd19097/src/services/appendContactToGroup.js#L29-L39

After that there is already a vuex action to remove a contact from a group https://github.com/nextcloud/contacts/blob/d8ede82510afe55a06c754710463a45eab6e5d7c/src/store/groups.js#L151-L161

I can't believe that this is still an open thing after almost two years ... I hope this is getting fixed soon since it's quite a pain when you don't know this and import a vcf from a google contacts export and end in having dozens of unwanted contact groups while not being able to remove them.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaelletzgus picture michaelletzgus  ·  5Comments

kangaroo72 picture kangaroo72  ·  4Comments

Spartachetto picture Spartachetto  ·  3Comments

Kalytis picture Kalytis  ·  4Comments

keunes picture keunes  ·  4Comments