delete_profile_photos()

Client.delete_profile_photos()

Delete your own profile photos.

Parameters

photo_ids (str | List of str) – A single Photo id as string or multiple ids as list of strings for deleting more than one photos at once.

Returns

bool – True on success.

Example

# Get the photos to be deleted
photos = app.get_profile_photos("me")

# Delete one photo
app.delete_profile_photos(photos[0].file_id)

# Delete the rest of the photos
app.delete_profile_photos([p.file_id for p in photos[1:]])