src/Storage/File/FileWriter.php
protected function removeBkFile()
    {
        if (!$this->options["backup"]) {
            return;
        }

        // Remove backup file if the write was successful
        if (!$this->writeErrors && $this->bkFilePath) {
            unlink($this->bkFilePath);
        }
    }
protected function removeBkFile()
    {
        if (!$this->options["backup"]) {
            return;
        }

        // Remove backup file if the write was successful
        if (!$this->writeErrors && $this->bkFilePath) {
            unlink($this->bkFilePath);
        }
    }
Closes the backup file

Removes it if the write operation to the original file ended successfully

@return void