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
)
Public Sub DeleteStream (
stream As Stream,
options As Options
)
public:
void DeleteStream(
Stream^ stream,
Options^ options
)
member DeleteStream :
stream : Stream *
options : Options -> unit
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