There are a few
We can start with the most available one: Just attack it. There are no rules against attacking objects that are worn or carried, but you would likely be subject to some DM rulings. Therefore any ability that just lets you make an attack (such as the Attack action) without a target stipulation qualifies. This also includes the attack(s) of virtually every monster. I won't bother to list all of these.
Monsters: Corrosive oozes and rust monsters
Black Pudding (MM 241) and Gray Ooze (MM 243) each have an ability which corrodes nonmagical worn/carried armour and weapons. These abilities give a -1 penalty to the item upon hit (either by the ooze or the wearer depending) and destroys them upon sufficient penalty. The abilities vary; Black Puddings can corrode weapons of wood or metal as well as any nonmagical armour, while Gray Oozes only corrode metal weapons and armour.
Rust monsters (MM 262) - while not oozes, but rather cute, insect-like monstrosities - have a similar feature which corrodes nonmagical weapon that hit it, and using their Antennae attack can corrode a "nonmagical ferrous metal object" worn or carried by a creature (that creature can make a Dex save to avoid the effect) which includes both armour, weapons, as well as any (metal) object on that person/creature.
The Disintegration ray of Beholders and Death Tyrants (and some other of their kin) can target objects (no mention of being carried or worn) and will destroy nonmagical ones (Large or smaller or 10 ft cube of Huge or larger). This is maybe one of the least scary things a beholder can do to you.
Spells: Damage to objects
As established by this answer a spell which can deal damage to objects and does not stipulate the target to not be carried, can damage them. They may be subject to the same DM rulings as attack, though. This includes the following:
- Bigby's Hand: 4d8 force damage on melee spell attack, one target per round.
- Chain lightning: 10d8 lightning damage with a Dexterity save. Up to 10 targets.
- Control Water: Doesn't mention that the objects can't be worn or carried, it probably should.
- Fire Bolt: 1d10 fire damage (more at higher levels) on a ranged spell attack.
- Melf's Acid Arrow: 6d4 acid damage on ranged spell attack.
- Mordekainen's Sword: 3d10 force damage on melee spell attack each turn.
- Scorching Ray: Total of 6d6 fire damage on ranged spell attacks.
- Storm of Vengeance: 1d6 acid, 10d6 lightning, there's a lot to this spell, it's a 9th level spell.
Disintegrate similarly can target an object and will destroy nonmagical objects that are Large or smaller. Alternatively, you could target the creature that wears the object(s) and destroy it and all the things it carries:
[...] If [the spells] damage reduces the target to 0 hit points, it is disintegrated.
A disintegrated creature and everything it is wearing and carrying, except magic items, are reduced to a pile of fine gray dust.
--- Player's Handbook, p. 233
This may require favourable ruling from your DM, but this 4th level spell lets you transform objects into other objects with no requirements for them not being carried or worn. However, the targeted object(s) must be considered a "raw material,” and the spell has a casting time of 10 minutes so your use cases might be limited.
Wish can do anything you can convince and phrase so your DM lets it happen. That will include interacting with carried/worn objects. I hope that interaction is worth it for a 9th level spell and enduring the stress of the free form wish. I mention wish not because it is interesting, but for completeness.
Honourable mention: Telekinesis
This spell doesn't damage or destroy objects in and of itself, but it can be used to that end. The relevant section of the spell description:
You can try to move an object that weighs up to 1,000 pounds. If the object isn't being worn or carried, you automatically move it up to 30 feet in any direction, but not beyond the range of this spell.
If the object is worn or carried by a creature, you must make an ability check with your spellcasting ability contested by that creature's Strength check. If you succeed, you pull the object away from that creature and can move it up to 30 feet in any direction but not beyond the range of this spell.
--- Player's Handbook, p. 280-281
The mage hand cantrip may also be able to accomplish this, but does not have explicit rules allowing it to.
You can use the hand to manipulate an object [...]
--- Player's Handbook, p. 256
While they don’t damage or destroy the object itself, you might be able to use mage hand or telekinesis to ensure the targeted object is no longer carried or worn, and thus can be damaged by other spells like shatter or fireball.