You can delete reports and folders using JSL. Folders must be empty before they can be deleted.
returncode = liveconnection << Delete Report( report << Get ID() );
returncode = liveconnection << Delete Folder( folder << Get ID() );
In both of these cases, a value of 1 (True) or 0 (False) will indicate if the operation was successful.