Can not delete an animation action
In the outliner, switch the type of information to display to Blender File. Extend Current File > actions. There you have your Cube-Action – right click it and select delete. See screenshot below.