def remove_action(scriptName):
    ''' remove all instances of a given scriptname.
	Call save_defaults() to store for next session
	'''
    defaults = NSUserDefaults.standardUserDefaults()
    editoractions = get_actions()
    [editoractions.remove(x) for x in editoractions if str(x['scriptName']) == scriptName]
    defaults.setObject_forKey_(editoractions, 'EditorActionInfos')
 remove all instances of a given scriptname.
	Call save_defaults() to store for next session
	
lib/pythonista_add_action.py