Hard Inquiries with Permission

I have an account with Macy’s. I’ve had it for 15 years. Recently, they did a hard inquiry on my credit. Can I get that removed or are they allowed to do that?

Thank you