Function: removeFromDraft()
function removeFromDraft(
page,
draftItemId,
names
): Promise<void>;
Defined in: core/forms.ts:288
Removes files by their path in a form's draft area ("notes.pdf", "week1/notes.pdf"), as the
file manager's delete does; the files the area had stay until the form is saved. Throws FormError
naming the files the area doesn't have, before removing any.
Parameters
| Parameter | Type |
|---|---|
page | Page |
draftItemId | string |
names | string[] |
Returns
Promise<void>