Delete a job 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 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);

See Also