Sorry, as far as I know you cannot. It’s still a public record, so it will be in numerous databases the credit bureaus pull data from. If you look on your report it will say “dismissed”
A friend of mine paid a lawyer who claimed he could get it removed. In the end the lawyer was as successful as he would have been on his own. He managed to remove it from one report but it came back a few months later.
There should be a legit way to remove a dismissed case but bank have eroded many consumer roights in this area
If a bankruptcy case is improperly filed or otherwise rejected by a court, the case is referred to as dismissed. This is in contrast to the discharge that signifies the successful conclusion of a bankruptcy filing. Even if bankruptcy relief is not granted, credit agencies are required to report a filed and dismissed bankruptcy case for 10 years, just as any other bankruptcy would be reported. If a dismissed case is erroneously reported on your credit report, then you may be able to have it removed.