Revert "Restore $.clean function."

This reverts commit a60cd5a48e042b13aaab1f369f44b8096a882e3d.