> For the complete documentation index, see [llms.txt](https://lessons.mistyrobotics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lessons.mistyrobotics.com/python-elements/misty-python-api/change-remove-assets.md).

# Change/Remove Assets

Here you can find a set of API calls to change the name of your assets and remove them if need be.

### RenameVideoRecording

Renames an existing video recording.

**Note:** This command only renames a video recording that Misty has created. You cannot use this command to rename a user-uploaded video file.

**Example Code**

{% hint style="success" %}

```python
misty.rename_video_recording("myhomevideo","partyvideo")
```

{% endhint %}

**Parameters**

```python
misty.rename_video_recording(self, oldName : str = None, newName : str = None)
```

* OldName (string) - The current (old) filename of the video recording to rename, without the file type extension.
* NewName (string) - The new filename to associate with the video recording, without the file type extension. The name of a video recording can only include uppercase and lowercase alphanumeric characters, hyphens, and underscores (`[a-zA-Z0-9_-]`). Do not supply a file type extension; the system automatically uses the `.mp4` extension for Misty's video recordings.

### **DeleteAudio**

Deletes audio files on your Misty

**Example Code**

{% hint style="success" %}
misty.delete\_audio("examplesong.wav")
{% endhint %}

**Parameters**

```python
misty.delete_audio(self, fileName : str = None) -> Response:
```

* FileName (string) - The name of the file to delete, including its file type extension.

### **DeleteImage**

Deletes an image file from Misty's local storage.

**Example Code**

{% hint style="success" %}

```python
misty.delete_image("mybaddimage.png")
```

{% endhint %}

**Note:** This command cannot delete Misty's default image files.

**Parameters**

* FileName (string) - The name of the file to delete, including its file type extension.

```python
misty.delete_image(self, fileName : str = None) -> Response:
```

### **DeleteVideo**

Deletes a user-uploaded video file from Misty's storage.

**Example Code**

{% hint style="success" %}

```python
misty.delete_video("myvideo.mp4")
```

{% endhint %}

**Note:** This command only deletes user-uploaded video assets. To delete a video recording that Misty has created, you must use the [`DeleteVideoRecording`](https://docs.mistyrobotics.com/misty-ii/web-api/api-reference/#deletevideorecording) command.

**Parameters**

```python
misty.delete_video(self, fileName : str = None) -> Response:
```

* FileName (string) - The name of the video file to delete, with the file type extension.

### **DeleteVideoRecording**

Deletes a video recording.

**Note:** This command only deletes video recordings that Misty has created. To delete a user-uploaded video asset, you must use the [`DeleteVideo`](https://docs.mistyrobotics.com/misty-ii/web-api/api-reference/#deletevideo) command.

**Example Code**

{% hint style="success" %}

```python
misty.delete_video_recording("myhomevideo.mp4")
```

{% endhint %}

**Parameters**

* Name (string) - The filename of the video to delete. Does not include the filetype extension.

```python
misty.delete_video_recording(self, name : str = None) -> Response:
```

### **ForgetFaces**

Removes records of trained faces from Misty's memory.

**Example Code**

{% hint style="success" %}

```python
misty.forget_faces("12142")
```

{% endhint %}

**Parameters**

```python
misty.forget_faces(self, faceId : str = None)
```

* FaceId (string) - Optional. The ID of the face to remove. If you do not pass in a value for this parameter, clears all trained faces from Misty's memory.
