function disconnectPostWithAssigment