Section 27 (3) and (4)

…

(3) If giving access to a document will disclose to the applicant matter the agency or Minister reasonably considers is not relevant to the application, the agency or Minister may delete the irrelevant matter from a copy of the document before giving access to the document.

(4) The agency or Minister may give access to a document by giving access to a copy of the document with the irrelevant matter deleted only if the agency or Minister considers, from the application or after consultation with the applicant—

(a) the applicant would accept the copy; and

(b) it is reasonably practicable to give access to the copy.