# Delete animation of object

Sorry for a simple question, but I have animated the movement of a door; just a movement of the X axis. Turns out I'll do this in code instead, so I want to delete this animation. How do I delete an animation completely from an object?

For that matter, at this point I could just as well delete everything animation related, so any hint of how to do that would be OK.

• This is one of the most confusing aspects of blender. I have been using blender for 17 years not an I still the whole, "Materials,Textures.Actions, Poses." creation and deletion process confusing. I know it has something to do with " the object oriented nature of blender" but that is for programmers, not hobbyist/artist like me. – Shaba1 May 10 '18 at 21:38

The fastest way I know to delete all the animations of an object:

• Select object
• Press spacebar
• Type "Remove anim"
• The menu item "Remove Animation" will appear.
• Using keyboard, select that menu item and press Enter or Return.

I do this often. I wish I knew an even faster way. This way, you only need one mouse click, to select the object.

# Deleting animation of specific property:

You can also right click on the animated value and click clear keyframes to automatically delete all keyframes on that value.

In the case of a transform channel, clear keyframes will clear the keyframes of the X Y and Z. If you only want to delete all the keyframes on one channel, right click on that channel and select Clear single keyframe.

# Deleting all animation:

Go to the dopesheet or graph editor, make sure that the show keyframe on selected objects only option (cursor icon) is disabled and that show keyframes on hidden objects (ghost icon) is enabled, press A to select all, and then press X or ⌦ Delete.

You can also go to the outliner, click on armature, right click on animation and select "Clear animation data". :)

A scripting approach, the following will clear all animation data from all selected objects.

import bpy

context = bpy.context
for ob in context.selected_objects:
ob.animation_data_clear()


Replace context.selected_objects with context.scene.objects for all in the current scene, or bpy.data.objects to remove all animation data from all objects.

• Good idea to post this here. Should we add how to remove the current keyframe only? – p2or Dec 16 '15 at 17:05
• It's the scripting equivalent of @megtwin 's answer, removing all animation data, as requested in q.. so I say no as to adding specifics like keyframes or nla strips. – batFINGER Dec 16 '15 at 17:11
• You are right, just thought it would be nice to have :) – p2or Dec 16 '15 at 17:17

Select any keyframe in the timeline, or similar, and press Alt + I. To check that a keyframe is selected, the frame number in the bottom left is orange (in the default theme); You can also press the highlighted button to jump to the next keyframe, or Up Arrow and Down Arrow.

For my situation, I have several animations attached to a model. One for walking, one for running. Each part of the model has its own set: [leftfoot]Walk, [leftfoot]Run, etc...

The quickest way to remove them all was to go to the NLA Editor and they are all listed there to be easily deleted. This first requires you to use the solution of @user14463 to clear the current model's animations for all parts.

Next, open the NLA Editor and all the animations are listed there. Select each one, and press X to delete it.