Deleting stream files and streams

Deleting a stream involves deleting the files and deleting the stream spec in two consecutive steps. P4V executes both steps when you select to delete a stream, but technically, you can do one without the other. If you delete only the files in a stream, the stream spec remains in the system. If you delete only the stream spec, the files that were associated with that stream remain available in the depot.

You can only delete the files in a stream if:

P4V removes unmodified files from the stream but does not delete files with more than one revision so that their edit history is preserved. Files deleted from the stream remain in client workspaces until the next sync operation (Get Latest Revision option), which removes them. If deleted files have been branched to a child stream, P4V generates new integration records to directly link the branched files in the child stream to the files in the parent stream that they were previously indirectly related to.

Subsequently, P4V removes the stream spec, but only if the stream:

Note

With task streams, the unmodified files automatically go away when the stream spec does. For more information, see Delete and unload task streams.

To delete a stream:

  1. In the Streams view, right-click the stream you want to delete and select Delete Stream <stream name>.
  2. When prompted if you want to permanently delete unmodified files before deleting the stream:

    1. Optionally, to also delete files that have been merged down multiple times from the parent stream but have never been edited in this stream, select the check box.
    2. Take note of the number of integration and revision records this action would delete.
    3. Click Yes, delete files.

      P4V permanently removes unmodified files (files with one revision) from this stream.

  3. In the Delete Stream form, click Yes to confirm.

    P4V removes the stream spec.