# \_invoiceDocumentDelete

Delete a specific PDF from the list of invoice PDFs a Job has.

### Parameters

#### id

The ID of the Job.

#### file

The name of the PDF file to delete.

### Example

```
FM_api('Job_invoiceDocumentDelete', ['id' => '222402', 'file' => 'invoice-222402-5.pdf']);
```

### Result

```
['invoice-222402-1.pdf','invoice-222402-2.pdf','invoice-222402-3.pdf','invoice-222402-4.pdf','invoice-222402-6.pdf','invoice-222402-7.pdf']
```

The result is an array of the remaining PDF files. The above is an example.
