remove function for posts