> For the complete documentation index, see [llms.txt](https://docs.fieldmotion.com/fieldmotion-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fieldmotion.com/fieldmotion-api-docs/job/_invoicedocumentdelete.md).

# \_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.
