deleteUserImage(userId, imageType, imageIndex) {

        if (!userId) {
            throw new Error("null userId");
        }

        if (!imageType) {
            throw new Error("null imageType");
        }

        let url = this.getUrl(`Users/${userId}/Images/${imageType}`);

        if (imageIndex != null) {
            url += `/${imageIndex}`;
        }

        return this.ajax({
            type: "DELETE",
            url
        });
    }
/**
     * Deletes a user image
     * @param {String} userId
     * @param {String} imageType The type of image to delete, based on the server-side ImageType enum.
     */
Deletes a user image
@param {String} userId
@param {String} imageType The type of image to delete, based on the server-side ImageType enum.
Deletes a user image @param { String } userId @param { String } imageType The type of image to delete based on the server - side ImageType enum .
deleteUserImage(userId, imageType, imageIndex) {
        if (!userId) {
            throw new Error("null userId");
        }
        if (!imageType) {
            throw new Error("null imageType");
        }
        let url = this.getUrl(`Users/${userId}/Images/${imageType}`);
        if (imageIndex != null) {
            url += `/${imageIndex}`;
        }
        return this.ajax({
            type: "DELETE",
            url
        });
    }
deleteUserImage ( userId , imageType , imageIndex ) { if ( ! userId ) { throw new Error ( "null userId" ) ; } if ( ! imageType ) { throw new Error ( "null imageType" ) ; } let url = this . getUrl ( ` ${ userId } ${ imageType } ` ) ; if ( imageIndex != null ) { url += ` ${ imageIndex } ` ; } return this . ajax ( { type : "DELETE" , url } ) ; }
Deletes a user image
 @param {String} userId
 @param {String} imageType The type of image to delete, based on the server-side ImageType enum.
Deletes a user image @param { String } userId @param { String } imageType The type of image to delete based on the server - side ImageType enum .