How to remove Discnumber Tag if album has only 1 CD but not if there are more?

Hi. I ripped a bunch of CDs and the software automatically filled up the discnumber field. I see a "1" if the album has only 1 CD and "2" if there are 2 discs, so on and so forth. Using MP3Tag to check the metadata, the "disctotal" field is absent.

I'd like to create an ACTION that will delete the discnumber tag (or make it blank) if the album has only one CD but keep it if there are two discs or more.

How do I do this? Thanks in advance!

I don't think that it is possible if there is no hint in the available data that no further discs follow.
It could work the other way round: if you find those files where there are more than one album, you could use the track numbering assistant and set the field DISCNUMBER including the total number of discs. As this would lead to a number like
you could filter for those that do not have the slash as part of DISCNUMBER and delete the field for those.
MP3tag does not know anything about the surrounding tracks but sees only the currently treated one, so MP3tag cannot tell whether there are more discs to come.

Thanks for the suggestion. I was hoping there was a way that MP3Tag could look at the album name and if the discnumber of that album is limited to "1," then make that tag blank. Otherwise, do nothing.

This would delete all entries with a "1" as MP3tag does not know whether a "2", "3" or more will follow.
This mechanism would also require to have a look at the artist as there are so many "Best of" and "Greatest Hits" albums around.

You have a point.

My CD ripping software saves albums in separate folders. Perhaps there is a way for MP3Tag to look at the songs in that folder, and if the discnumber tag of the songs is just "1," then make that tag blank. Otherwise do nothing.

This would still mean that you compare 2 files: one from the CD 1 folder and one from the CD 1+x folder. And this is what does not work.
If the ripping software saves the discnumber and the total in the path somewhere, it should be possible to retrieve this information. It will not work if the path says only
and not
CD 1_2

If the ripper only creates a "CDx" folder if there are more than one disc, one could filter for those files that do not have that folder with
NOT %_path% MATCHES "\\CD\d+"

I'm not sure what you are trying to accomplish with this as having the DISCNUMBER is actually considered having complete song metadata. That being said, you could see the Disc being displayed as 1 or 1/1 or 1/2 or being blank etc. There is also an extended TAG that is used known as TOTALDISCS. in this tag you could see 1 or 2 or blank etc. (Note the TOTALDISCS is not used with all file types but is included and used with MP3 and M4A file types)
AS MP3Tag does not go out and read data outside of what it finds saved within the file you would need to create an action that would modify and save the metadata.
In English it would be something like:

I do not see a field called TOTALDISCS anywhere in the list of supported fields:
So, a field called TOTALDISCS would be a user-defined field, not an extended tag field.
It may be that other programs split the field DISCNUMBER and display the disc and the total number of discs separately.

Follow-up question. I want to add the number of CDs to the name of the folder that contains the album, but only if that album has more than one CD.

For example, the 2002 album of Elton John's Greatest Hits has three CDs, as identifed in the %discnumber% tag. So I want the name of the folder to say Elton John - Greatest Hits (3CD).

How can I do this? Thanks in advance!

if DISCNUMBER says only 1, 2, 3 then it will not really work as MP3tag does not compare tags.
if DISCNUMBER looks like 1/3, 2/3, 4/3, then you can extract the number of discs with
And perhaps an action of the type "Format value" for _DIRECTORY will do:
Format string: %_DIRECTORY%[ $mid(%discnumber%,$add($strchr(%discnumber%,/),1),$len(%discnumber%))CD]
or perhaps a little less complicated:
Format string: %_DIRECTORY%[ $regexp(%discnumber%,\d\/,)CD]