Fix incorrect condition check in draft_delete_api().