According to the IRS:

“To be deductible, a business expense must be both ordinary and necessary. An ordinary
expense is one that is common and accepted in your industry. A necessary expense is one that
is helpful and appropriate for your trade or business. An expense does not have to be
indispensable to be considered necessary.”