Generally, restrictions will be different depending on location, but typically it is ok to use any compost in flower beds, or in your garden, just don’t use it on anything you plan to eat (fruit or veggies). It is generally permitted to dispose of it in the trash as long as it is in a sealed bag. But you are still advised to consult local authorities to find out if there are any location specific rules to follow.