function clearPubId($args, $request)
{
if (!$request->checkCSRF()) {
return new JSONMessage(false);
}
$submission = $this->getSubmission();
$representationDao = Application::getRepresentationDAO();
$representation = $representationDao->getById($request->getUserVar('representationId'), $submission->getId());
import('controllers.tab.pubIds.form.PublicIdentifiersForm');
$form = new PublicIdentifiersForm($representation);
$form->clearPubId($request->getUserVar('pubIdPlugIn'));
return new JSONMessage(true);
}