On the destruction of star-forming clouds