Re: Court order to remove software
Most software that is designed to go to clients on renewable licenses has some "time bomb" built in that renders it less useful - or useless - after the expiration of the license. Sometimes the software vendor cuts off support, sometimes it won't import date from the Internet any more, etc.
If your product doesn't freeze up if the license isn't renewed, you'll need to have a lawyer review the license agreement (or other contract with the client) to see what remedies may be available for failure to return it, delete it, renew, etc.
I am doubtful that asking for a writ of replevin or for claim and delivery will succeed; there are old cases holding that these pleas are invalid for intangible property. See Ashton v. Heydenfeldt (1899) 124 Cal. 14, and Bell v. Bank of California (1908) 153 Cal. 234 for cases holding that replevin and claim and delivery, respectively, were inappropriate causes of action for recovery of intangibles (shares of corporate stock).
The law may be changing in this regard, but even 101 years after the Bell decision I think it would be batter to sue for money damages for breach of the license, or for unjust enrichment and restitution, and maybe ask for an injunction at the same time.
You didn't provide a lot of details, but essentially a well-framed suit based upon some breach of the license agreement or other contract remedy looks like the ticket here.