Removing container function