add delete method to lessons and posts controller.