Delete a stream from the repository

Namespace: Perforce.P4
Assembly: p4api.net (in p4api.net.dll) Version: 2017.3.160.836 (2017.3.160.0836)

Syntax

C#
public void DeleteStream(
	Stream stream,
	Options options
)
Visual Basic
Public Sub DeleteStream ( _
	stream As Stream, _
	options As Options _
)
Visual C++
public:
void DeleteStream(
	Stream^ stream, 
	Options^ options
)

Parameters

stream
Type: Perforce.P4..::..Stream
The stream to be deleted
options
Type: Perforce.P4..::..Options
Only the '-f' flag is valid when deleting an existing stream

Examples

To delete a locked stream with no child streams or active clients as an admin user:
CopyC#
Stream stream = rep.GetStream("//Rocket/GUI");
StreamCmdOptions opts = new StreamCmdOptions(StreamCmdFlags.Force,
                                       null, null); 
rep.DeleteStream(stream, opts);

See Also