Click or drag to resize

RepositoryDeleteStream Method

Delete a stream from the repository

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2024.1.265.5426
Syntax
public void DeleteStream(
	Stream stream,
	Options options
)

Parameters

stream
Type: Perforce.P4Stream
The stream to be deleted
options
Type: Perforce.P4Options
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:
Stream stream = rep.GetStream("//Rocket/GUI");
StreamCmdOptions opts = new StreamCmdOptions(StreamCmdFlags.Force,
                                       null, null);
rep.DeleteStream(stream, opts);
See Also