delete() protected method

Deletes old file.
protected delete ( string $attribute, boolean $old = false )
$attribute string
$old boolean
 /**
  * @inheritdoc
  */
 protected function delete($attribute, $old = false)
 {
     parent::delete($attribute, $old);
     $profiles = array_keys($this->thumbs);
     foreach ($profiles as $profile) {
         $path = $this->getThumbUploadPath($attribute, $profile, $old);
         if (is_file($path)) {
             unlink($path);
         }
     }
 }