Doc creation and deletion.