The defendant may, at any time before judgment, upon reasonable notice to the plaintiff, move to discharge an attachment, as to the whole or part of the property attached.