src/Rails/ActiveRecord/Persistence/PersistedModel/Methods/PersistenceMethodsTrait.php
protected function deleteRecord(array $options = [])
    {
        $this->runCallbacks('delete', function() {
            if (!$this->deletedAt()) {
                $this->directUpdate(static::deletedAtAttribute(), static::deletedAtValue());
                $this->reload();
            }
        });
        return true;
    }
protected function deleteRecord(array $options = [])
    {
        $this->runCallbacks('delete', function() {
            if (!$this->deletedAt()) {
                $this->directUpdate(static::deletedAtAttribute(), static::deletedAtValue());
                $this->reload();
            }
        });
        return true;
    }
protected function deleteRecord ( array $ options = [ ] ) { $ this -> runCallbacks ( 'delete' , function ( ) { if ( ! $ this -> deletedAt ( ) ) { $ this -> directUpdate ( static :: deletedAtAttribute ( ) , static :: deletedAtValue ( ) ) ; $ this -> reload ( ) ; } } ) ; return true ; }
Soft-deletes the record. If the record is already deleted, no action is taken.
The `delete` callbacks are ran if the record is deleted. Like in `recover`, the
attribute is directly updated in the database, so no `save` or `update`
callbacks are ran, and any change made to the model is discarted as it is
reloaded.

@return bool
Soft - deletes the record . If the record is already deleted no action is taken . The delete callbacks are ran if the record is deleted . Like in recover the attribute is directly updated in the database so no save or update callbacks are ran and any change made to the model is discarted as it is reloaded .