This method allows to delete media.

    This method is deprecated and will be removed in the future. Please use instead.

    Parameters

    Returns an object containing the IDs of the deleted media under the property.

    Examples

    Deleting multiple media

    Delete two media.

    Response:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. "mediaids": [
    5. "13"
    6. ]
    7. },
    8. "id": 1
    9. }

    Source

    CUser::deleteMedia() in frontends/php/include/classes/api/services/CUser.php.