## DeleteUnusedImageClips

### Introduced

v2.0

### Description

Deletes all the image clips that are not used in the scene. When an image clip is not used, you can see (Not Used) beside the name of the clip. Calling this command also removes all the unused image sources.
You can use this command to clean up your scene.

### Scripting Syntax

    DeleteUnusedImageClips();

### Examples

#### VBScript Example

    ' First, add an image source.

    Dim oSourceObj, ImageFile

    ImageFile = Application.InstallationPath( siFactoryPath ) & "/Data/XSI_SAMPLES/Pictures/xsilogo.jpg"

    SIAddImageSource ImageFile, "XSIlogo", oSourceObj

    ' Now create an image clip from the image source.

    Dim oClipObj

    set oClipObj = AddImageClip( oSourceObj, "XSIlogo_Clip" )

    'Now remove all un-used imageclip, this will remove the clip that we just added since nobody is using it.

    DeleteUnusedImageClips

### See Also

DeleteUnusedImageSources