blender删除action

import bpy
name = "MyAction"

bpy.data.actions.remove(bpy.data.actions[name])