---
layout: docs
title: setDoClobber
id: class.Facebook.HackCodegen.CodegenFile.setDoClobber
docid: class.Facebook.HackCodegen.CodegenFile.setDoClobber
permalink: /docs/reference/class.Facebook.HackCodegen.CodegenFile.setDoClobber/
---
# Facebook\\HackCodegen\\CodegenFile::setDoClobber()




Use this to skip reading in the existing file




``` Hack
public function setDoClobber(
  bool $do_force,
): this;
```




Only use when you're sure you're okay with blowing away the previous file.




## Parameters




+ ` bool $do_force `




## Returns




* ` this `