public function setToBeDeleted()
    {
        $this->instance->markAttachmentUpdated();

        if ( ! $this->config->keepOldFiles()) {
            $this->clear();
        }

        $this->clearAttributes();
    }
public function setToBeDeleted()
    {
        $this->instance->markAttachmentUpdated();

        if ( ! $this->config->keepOldFiles()) {
            $this->clear();
        }

        $this->clearAttributes();
    }
public function setToBeDeleted ( ) { $ this -> instance -> markAttachmentUpdated ( ) ; if ( ! $ this -> config -> keepOldFiles ( ) ) { $ this -> clear ( ) ; } $ this -> clearAttributes ( ) ; }
Sets the attachment to be deleted.

This does NOT override the preserve-files config option.
Sets the attachment to be deleted .