Error user delete

Hi,
I create new function in block controller to delete user by ID. But got error.

Function :-

	public function userDelete($getUserID)
	{
		$userInfo = UserInfo::getByID($getUserID);
		if ($userInfo) {
		   // Delete the user
		   $userInfo->delete();
		}
	}

Error :

{"error":{"type":"Doctrine\\DBAL\\Exception\\ForeignKeyConstraintViolationException","message":"An exception occurred while executing 'DELETE FROM Users WHERE uID = ?' with params [49]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (`concrete5_saya`.`usersignups`, CONSTRAINT `FK_FEB5D909FD71026C` FOREIGN KEY (`uID`) REFERENCES `Users` (`uID`))"

Hello,

What version of Concrete CMS are you using? Also is usersignups a custom table from a custom addon or something?

It might be that that custom code needs to delete its association with the user to be deleted before the user can be deleted.