Skip Navigation

[Gelöst] How can I delete data from related fields that I want to delete?

This support ticket is created vor 3 Jahre, 3 Monate. There's a good chance that you are reading advice that it now obsolete.

Dies ist das technische Support-Forum für Toolset – eine Suite von Plugins zur Entwicklung von WordPress-Websites ohne PHP-Pogrammierung.

Jeder kann in diesem Forum lesen, aber nur Toolset-Kunden können darin Beiträge veröffentlichen. Der Toolset-Support arbeitet 6 Tage pro Woche, 19 Stunden pro Tag.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 Antworten, has 2 Stimmen.

Last updated by martinP-14 vor 3 Jahre, 3 Monate.

Assigned support staff: Minesh.

Author
Artikel
#1639653

Hi,

I found out that I will not need some custom fields anymore. As I used theses fields in many posts I would like to know: how can I delete the data form these custom fields?

Does this happen automatically when I delete the custom fields itself? Or do the data still is in the database when I delete the custom fields? Are there other ways to delete the data?

Martin

#1639953

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

-- I would like to know: how can I delete the data form these custom fields?
- Does this happen automatically when I delete the custom fields itself?
NO
- Or do the data still is in the database when I delete the custom fields?
Yes
- Are there other ways to delete the data?
No

So, to delete such unwanted custom field content, you need to write your own custom query which should run on postmeta table (as custom field content stored in postmeta table) and it should delete the custom field content for only those posts where you want to delete it.

Please check plugin like https://wordpress.org/plugins/advanced-database-cleaner/ if that can help.

#1639957

Hi, isn't this an idea for a feature request? As Toolset creates fields to add data it should also be able to provide an option to delete it...

#1639963

Minesh
Supporter

Languages: Englisch (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes, you have a point and we are always encourage the users to file a feature request that should be reviewed by our product manager.

You can file a new feature request using the following form:
=> https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#1639985

Well, I still have to figure out how to remove data - a custom function is not my way as Toolset "promises" to keep coding away from its user - and as a "delete some data in the database" can make a lot of trouble if it is not done right...

Das Forum „Toolset Professioneller Support“ ist für neue Themen und Antworten geschlossen.