> 2.12.5 | Deleting phonebook or phonebook entries

> This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropriate buttons on the toolbar.

> 2.12.5.1 | Description

> This chapter describes the steps used to delete an entry of a phonebook or to delete a whole phonebook.
> Depending on the type of phonebook there are different ways to delete entries.

> • | If the active phonebook is “SM”, “ME”, “FD” or “ON”: Use the AT+CPBW command and simply enter the location number of the entry to be deleted. To delete the entire phonebook this action must be performed for each single entry. If you wish to delete entries in the “FD” phonebook remember that PIN2 authentication must be done before as described in Section 2.12.7.

> • | If the active phonebook is “LD”, “RC” or “MC”: There is no way to edit a single entry (AT+CPBW cannot be used). The command AT^SPBD clears all entries stored in the phonebook. The “LD” phonebook can also be deleted with AT^SDLD. See [2] for detail.

> 2.12.5.2 | Used AT commands

> Command | Explanation
> AT+CPBR | Read current phonebook entries
> AT+CPBW | Write phonebook entry
> AT^SPBD | Delete the given phonebook

> For further details about the commands see [2].

> 2.12.5.3 | Flow chart

> Figure 92: Deleting phonebook entries

> 2.12.5.4 | Hints

> • | For PIN2 see phonebook initialization in Section 2.12.1 and details on “FD” phonebook in Section 2.12.7.

> 2.12.5.5 | Example

> ***************************************
> Comment: Deleting phonebook or phonebook entries
> ***************************************
> ***************************************
> Comment: Request maximum range of entries and number of used memory locations.
> ***************************************
> Subscr 1 Send: AT+CPBR=?
> Subscr 1 Receive: AT+CPBR=?
> Subscr 1 Receive: +CPBR: (1-20),20,14
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Read all entries.
> ***************************************
> Subscr 1 Send: AT+CPBR=1,20
> Subscr 1 Receive: AT+CPBR=1,20
> Subscr 1 Receive: +CPBR: 1,"+491765864491",145,"John Smith"
> Subscr 1 Receive: +CPBR: 2,"+44545896638",145,"Paul Williams"
> Subscr 1 Receive: +CPBR: 3,"+44556565657",145,"Joe Anderson"
> Subscr 1 Receive: +CPBR: 4,"+445636934485",145,"Oscar Thomson"
> Subscr 1 Receive: +CPBR: 5,"+445565656899",145,"Hannah Adams"
> Subscr 1 Receive: +CPBR: 6,"+447982865563",145,"Samantha Young"
> Subscr 1 Receive: +CPBR: 7,"+449585315798",145,"Alexis Wright"
> Subscr 1 Receive: +CPBR: 8,"+445415454646",145,"Abigail Cox"
> Subscr 1 Receive: +CPBR: 12,"+446565689115",145,"Kyla Clark"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Delete entry at index 3.
> ***************************************
> Subscr 1 Send: AT+CPBW=3
> Subscr 1 Receive: AT+CPBW=3
> Subscr 1 Receive: OK
> ***************************************
> Comment: Read all entries.
> ***************************************
> Subscr 1 Send: AT+CPBR=1,20
> Subscr 1 Receive: AT+CPBR=1,20
> Subscr 1 Receive: +CPBR: 1,"+491765864491",145,"John Smith"
> Subscr 1 Receive: +CPBR: 2,"+44545896638",145,"Paul Williams"
> Subscr 1 Receive: +CPBR: 4,"+445636934485",145,"Oscar Thomson"
> Subscr 1 Receive: +CPBR: 5,"+445565656899",145,"Hannah Adams"
> Subscr 1 Receive: +CPBR: 6,"+447982865563",145,"Samantha Young"
> Subscr 1 Receive: +CPBR: 7,"+449585315798",145,"Alexis Wright"
> Subscr 1 Receive: +CPBR: 8,"+445415454646",145,"Abigail Cox"
> Subscr 1 Receive: +CPBR: 12,"+446565689115",145,"Kyla Clark"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Delete "LD" phonebook.
> ***************************************
> Subscr 1 Send: AT^SPBD="LD"
> Subscr 1 Receive: AT^SPBD="LD"
> Subscr 1 Receive: OK