pymel.core.general.deleteAttrPattern

deleteAttrPattern(*args, **kwargs)

After a while the list of attribute patterns could become cluttered. This command provides a way to remove patterns from memory so that only the ones of interest will show.

Flags:

Long Name / Short Name Argument Types Properties
allPatterns / all bool ../../../_images/create.gif
  If specified it means delete all known attribute patterns.
patternName / pn unicode ../../../_images/create.gif
  The name of the pattern to be deleted.
patternType / pt unicode ../../../_images/create.gif
  Delete all patterns of the given type. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.deleteAttrPattern

Example:

import pymel.core as pm

import maya.cmds as cmds
pm.deleteAttrPattern( patternType="xmlPattern" )
// Result: [myXMLPattern, myOtherXMLPattern] //
pm.deleteAttrPattern( patternName="myJSONPattern" )
// Result: myJSONPattern //