Fixed bug on delete document on frm_onDeleteDocument.
Remove call to pgDelete