common/services/entities/UserService.php
public function delete( $model, $config = [] ) {

		// Delete Files
		$this->fileService->deleteMultiple( [ $model->avatar, $model->banner, $model->video ] );

		// Delete Notifications
		Yii::$app->eventManager->deleteNotificationsByUserId( $model->id );

		// Delete model
		return parent::delete( $model, $config );
	}
public function delete( $model, $config = [] ) {

		// Delete Files
		$this->fileService->deleteMultiple( [ $model->avatar, $model->banner, $model->video ] );

		// Delete Notifications
		Yii::$app->eventManager->deleteNotificationsByUserId( $model->id );

		// Delete model
		return parent::delete( $model, $config );
	}
public function delete ( $ model , $ config = [ ] ) { // Delete Files $ this -> fileService -> deleteMultiple ( [ $ model -> avatar , $ model -> banner , $ model -> video ] ) ; // Delete Notifications Yii :: $ app -> eventManager -> deleteNotificationsByUserId ( $ model -> id ) ; // Delete model return parent :: delete ( $ model , $ config ) ; }
The project must extend this class to delete project specific resources associated
with the user.

@param \cmsgears\core\common\models\entities\User $model
@param array $config
@return boolean
The project must extend this class to delete project specific resources associated with the user .