servers()->updateExistingPivot($server->id, [ 'status' => SshKeyStatus::DELETING, ]); $server->os()->deleteSSHKey($sshKey->public_key); $server->sshKeys()->detach($sshKey); } }