added delete func for blog and blog type