How to delete attribute set by given id Magento 2?

You can remove specific attribute set from the system by given id in Magento 2.

If you want to delete extra attribute set from the magento admin panel, You can safely remove it by given id in the deleteById($attributeSetId) from the AttributeSetRepository Interface.

Output will be boolean if attribute set delete successful, true otherwise it will be false.

You can pass attribute set id in the above model class,

Output:
Boolean (True or false)