Skip to content

Commit

Permalink
#782: add support for DELETE to mobileKeyword
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Mar 29, 2023
1 parent 76c3905 commit 3836b4f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/metadataTypes/MobileKeyword.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,19 @@ class MobileKeyword extends MetadataType {
return null;
}
}
/**
* Delete a metadata item from the specified business unit
*
* @param {string} key Identifier of item
* @returns {Promise.<boolean>} deletion success status
*/
static deleteByKey(key) {
Util.logger.info(
' - Note: As long as the provided API key once existed, you will not see an error even if the mobileKeyword is already deleted.'
);
return super.deleteByKeyREST('/legacy/v1/beta/mobile/keyword/' + key, key, false);
}

/**
* clean up after deleting a metadata item
*
Expand Down

0 comments on commit 3836b4f

Please sign in to comment.