# Deleting files

To delete a file from the depot, you must mark it for delete, then submit the changelist containing the marked file. When you delete a file, a new revision marked "deleted" is stored in the depot and the file is removed from your workspace. Previous revisions in the depot are not affected.

To delete a file:

1. Right-click the file and choose Mark for Delete. When you mark the file for delete, it is placed in a changelist.
2. Submit the changelist containing the file. The file is deleted.