def delete_media_service_rg(access_token, subscription_id, rgname, msname):
endpoint = '<STR_LIT>'.join([get_rm_endpoint(),<EOL>'<STR_LIT>', subscription_id,<EOL>'<STR_LIT>', rgname,<EOL>'<STR_LIT>', msname,<EOL>'<STR_LIT>', MEDIA_API])<EOL>return do_delete(endpoint, access_token)<EOL>
Delete a media service.

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        rgname (str): Azure resource group name.
        msname (str): Media service name.

    Returns:
        HTTP response.