Change method when deleting posts