Table of Contents

Method DeleteJobAttachment

Namespace
Skyline.DataMiner.Net.Jobs
Assembly
SLNetTypes.dll

DeleteJobAttachment(JobID, string)

Deletes the attachment with name attachmentName from the job with ID jobID.

public void DeleteJobAttachment(JobID jobID, string attachmentName)

Parameters

jobID JobID

The ID of the Job to delete the attachment from.

attachmentName string

The name of the attachment to delete.

Remarks

Available from DataMiner 10.0.5 (RN 24791) onwards.

This method does not throw an exception if an attachment with the given name could not be found for the job.

Please note the following regarding job attachments:

  • The size limit of job attachments depends on the Documents.MaxSize setting in the file MaintenanceSettings.xml. By default, this is 20 MB.
  • Deleting a job will remove all attachments of this job from the system. These cannot be recovered afterwards.
  • Deleting job attachments requires the Jobs > UI available and Jobs > Delete user permissions.
  • Job attachments are backed up with the backup option All documents located on this DMA.
  • Job attachments are synced in a cluster.

Exceptions

ArgumentNullException

jobID or attachmentName is null.

DataMinerException

InnerException will be an ArgumentException if the job could not be found.

DataMinerSecurityException

The user does not have edit permissions for the specified job.