added --delete to publish script