{"size": 540, "ext": "js", "max_stars_repo_path": "source/deleteLibraryMessage.js", "max_stars_repo_name": "FabianLCH/node-qualtrics-api", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "source/deleteLibraryMessage.js", "max_issues_repo_name": "FabianLCH/node-qualtrics-api", "max_issues_repo_issues_event_min_datetime": "2019-05-13T17:06:43.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T11:34:57.000Z", "max_forks_repo_path": "source/deleteLibraryMessage.js", "max_forks_repo_name": "FabianLCH/node-qualtrics-api", "max_forks_repo_forks_event_min_datetime": "2020-01-24T21:07:16.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-28T21:44:44.000Z"}
{"max_stars_count": null, "max_issues_count": 6, "max_forks_count": 3, "avg_line_length": 33.75, "max_line_length": 134, "alphanum_fraction": 0.7703703704}
import deleteRequest from './internal/deleteRequest'

require('dotenv').config()

const qualtricsDomain = process.env.QUALTRICS_API_DOMAIN

/**
 * Deletes a Library Message
 * @param {String} library libraryId
 * @param {String} message messageId
 * @return {Promise} A promise that resolves to deleting a Library Message: https://api.qualtrics.com/reference#delete-library-message
*/

export default function deleteLibraryMessage(library, message) {
    return deleteRequest(`${qualtricsDomain}libraries/${library}/messages/${message}`);
}