First, it depends on what country and if in the U.S. what state... in the States it varies as laws are different at state and even local levels...
IF YOU ARE IN THE STATES...
I have experience with this from both sides and that's all I'll say for my security purposes. But, if you are in the states... first and foremost LAWYER UP. Don't say SHIT. Refuse to tell them anything and tell them any further questioning should be referred to your attorney. I'll repeat this and in bold...
do not tell them anything! you have the RIGHT TO REMAIN SILENT. anything you tell them they will only use it to incriminate you and use it AGAINST you. So frankly, don't fuck yourself. Keep it zipped.
Secondly, in order to search your house, they need a warrant. In order to have a Warrant they need to present EVIDENCE to a judge/magistrate/etc... and there has to be enough prosecutable evidence to issue a Warrant. Unless you are a big time dealer, there won't be any huge rush to get the warrant issued. Meaning if they think you have 100's of plants or 100's of pounds you may have an hour to clear out your shit. In your case, a small amount of hash may not be enough evidence to issue a warrant (I don't know where you live so that's why I say MAY. I would assume in all 50 states it's NOT enough but again I don't know where you live. You can visit
www.norml.org to see your state laws if you are in the states and to also seek legal counsel if don't know where to start as far as finding a good lawyer.)
Ditching your plants is up to you. Like I said again, it depends on where you live. Better to be safe than sorry. But most importantly LAWYER UP, Keep it ZIPPED, refer all questioning to your ATTORNEY, you DO NOT have to answer any of their questions no matter what they say to you. They lie - remember that. And research your local laws. Assuming you are in the States. I don't know anything about Canada, Europe, or any where else.
Best of luck to you friend.