Jump to content
LaunchBox Community Forums

Bulk Remove Custom Fields


Recommended Posts

Bulk Remove Custom Fields

View File

Bulk clear Custom Fields Values or remove the Custom Field entirely from LaunchBox.

Inspired in part by this BitBucket ticket (and the rest out of boredom)
https://bitbucket.org/jasondavidcarr/launchbox/issues/8475/mass-delete-remove-custom-fields

 

Notes about Custom Fields:
Custom Fileds are comprised of a Name and a Value.  When you edit a game and look in the Custom Fields section, every Custom Field [Name] in your entire LaunchBox collection will be available.  Whether a Value is assigned to it for that game, or not.

Only Custom Fields that have a Value assigned to it somewhere in your LaunchBox collection will actually exist.
aka, if you're seeing a Custom Field Name, something somewhere in your collection has a Value assigned to it.

 

Installing:

  • Download and unblock the zip file.
  • Copy the contents of the zip into /LaunchBox/Plugins/
    • i.e.  D:\LauncBox\Plugins\BulkRemoveCustomFields\BulkRemoveCustomFields.dll

 

How to use:
Start LaunchBox, click Tools and select Bulk Remove Custom Fields

Select a Platform to get a list of all Custom Fields [that have an associated Value] for that platform.
Or check Select All to get a list of all Custom Fields from all Platforms.

Example #1:
To remove all Custom Fields whose Name is "Has Bezel" and their Value is "yes" (lowercase "y")
    Check Show All [to show ALL distinct Custom Field Names and Values]
    Check the box next to "Has Bezel" "yes"
    Click Delete Selected

image.png.65fb4fccb9d425aeab360d22a965350c.png

 

Example #2:
To remove all Custom Fields whose Name is "Has Bezel", regardless of their Value 
    Un-Check Show All [to show ONLY the Custom Field Name]
    Check the box next to "Has Bezel"
    Click Delete Selected

image.png.faa23deccf7c935410900ec7f75ca1b9.png

To remove a Custom Field entirely from LaunchBox, check Select All and follow Example #2.

Options:
Select All
    Show all Custom Fields for every Platform

Show All
    Show Custom Fields Names and Values

CAUTION:  If you click Delete Selected and then click Yes, those selected are now GONE!
Reprise:  If you had LaunchBox's Automatic Backup feature enabled, you can use the Restore Data Backup to bring them back.

 

Q: Why is it listing the same Custom Field more than once?
A: It's not.  Custom Fields are CasE sENsiTiVe.  A Custom Field with the Name Saves High Scores is different from Saves high scores.  Same goes for Custom Field Values.  True is not the same as true.


 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...