delete posts function added