/** * deleteBookmark * Delete an existing bookmark. * Takes the file id in parameter. * Not supported. */ public static function deletebookmark($input) { self::check_version($input, "1.9.0"); $id = self::check_parameter($input, 'id'); $type = Subsonic_XML_Data::getAmpacheType($id); $bookmark = new Bookmark(Subsonic_XML_Data::getAmpacheId($id), $type); if ($bookmark->id) { $bookmark->remove(); $r = Subsonic_XML_Data::createSuccessResponse(); } else { $r = Subsonic_XML_Data::createError(Subsonic_XML_Data::SSERROR_DATA_NOTFOUND); } self::apiOutput($input, $r); }