Delete a job from the repository
Namespace: Perforce.P4Assembly: p4api.net (in p4api.net.dll) Version: 2015.1.103.4687 (2015.1.103.4687)
Syntax
C# |
---|
public void DeleteJob( Job job, Options options ) |
Visual Basic |
---|
Public Sub DeleteJob ( _ job As Job, _ options As Options _ ) |
Visual C++ |
---|
public: void DeleteJob( Job^ job, Options^ options ) |
Parameters
- job
- Type: Perforce.P4..::..Job
The job to be deleted
- options
- Type: Perforce.P4..::..Options
Only the '-f' flag is valid when deleting an existing job
Examples
To delete job000002 from the repository :
CopyC#

Job u = _repository.GetJob("job000002"); _repository.DeleteJob(u, null);